// 文档 https://github.com/hooke007/MPV_lazy/wiki/4_GLSL

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!WIDTH LUMA.w 3 *
//!HEIGHT LUMA.h 3 *
//!COMPONENTS 1
//!BIND LUMA
//!SAVE LANCZOS3
//!DESC [AiUpscale_HQ_3x_Photo] lanczos3

#define FIX(c)		max(abs(c), 1e-5)
#define PI		3.141592653

vec3 weight3(float x)
{
    vec3 s = FIX(2.0 * PI * vec3(x - 1.5, x - 0.5, x + 0.5));
    return sin(s) * sin(s / 3.0) / (s * s);
}

float line_run(float ypos, vec3 xpos1, vec3 xpos2, vec3 linetaps1, vec3 linetaps2)
{
    return float(LUMA_tex(vec2(xpos1.r, ypos))) * linetaps1.r + float(LUMA_tex(vec2(xpos1.g, ypos))) * linetaps2.r + float(LUMA_tex(vec2(xpos1.b, ypos))) * linetaps1.g + float(LUMA_tex(vec2(xpos2.r, ypos))) * linetaps2.g + float(LUMA_tex(vec2(xpos2.g, ypos))) * linetaps1.b + float(LUMA_tex(vec2(xpos2.b, ypos))) * linetaps2.b;
}

vec4 hook()
{
    vec2 pos = LUMA_pos + LUMA_pt * 0.5;
    vec2 f = fract(pos / LUMA_pt);

    vec3 linetaps1 = weight3(0.5 - f.x * 0.5);
    vec3 linetaps2 = weight3(1.0 - f.x * 0.5);
    vec3 columntaps1 = weight3(0.5 - f.y * 0.5);
    vec3 columntaps2 = weight3(1.0 - f.y * 0.5);

    float suml = dot(linetaps1, vec3(1.0)) + dot(linetaps2, vec3(1.0));
    float sumc = dot(columntaps1, vec3(1.0)) + dot(columntaps2, vec3(1.0));
    linetaps1 /= suml;
    linetaps2 /= suml;
    columntaps1 /= sumc;
    columntaps2 /= sumc;

    vec2 xystart = (-2.5 - f) * LUMA_pt + pos;
    vec3 xpos1 = vec3(xystart.x, xystart.x + LUMA_pt.x, xystart.x + LUMA_pt.x * 2.0);
    vec3 xpos2 = vec3(xystart.x + LUMA_pt.x * 3.0, xystart.x + LUMA_pt.x * 4.0, xystart.x + LUMA_pt.x * 5.0);

    return vec4(line_run(xystart.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps1.r + line_run(xystart.y + LUMA_pt.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps2.r + line_run(xystart.y + LUMA_pt.y * 2.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.g + line_run(xystart.y + LUMA_pt.y * 3.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.g + line_run(xystart.y + LUMA_pt.y * 4.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.b + line_run(xystart.y + LUMA_pt.y * 5.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.b, 0, 0, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE1
//!DESC [AiUpscale_HQ_3x_Photo] feature map 1

vec4 hook()
{
vec4 res = vec4(-0.308070570230484,-0.172085314989090,-0.152516111731529,-0.138089805841446);
res += vec4(0.015714356675744,-0.024354448541999,-0.055625699460506,-0.026095179840922) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.113951481878757,0.149726435542107,-0.023609124124050,-0.108190953731537) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.030178111046553,-0.016809741035104,0.279608011245728,0.017321852967143) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.106777317821980,0.010429789312184,0.029963487759233,-0.033642072230577) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.040532402694225,0.022043948993087,0.004382851999253,-0.111883342266083) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.063331425189972,0.017842981964350,-0.062844604253769,0.116298861801624) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.020253973081708,-0.335419535636902,-0.003532141447067,0.014095515012741) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.017929684370756,-0.135373711585999,0.219889014959335,-0.366425275802612) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.073870040476322,0.093337073922157,0.054475426673889,0.049352549016476) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.015168239362538,0.117916785180569,0.081461191177368,0.044218283146620) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.059450365602970,0.143888175487518,-0.004443942569196,-0.009594031609595) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.281104534864426,0.358238011598587,-0.217664256691933,0.030039982870221) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.675335407257080,0.258992284536362,0.314811885356903,0.245720610022545) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.490484088659286,-0.063718982040882,0.012735605239868,0.166407868266106) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.039689697325230,-0.045198634266853,0.027690270915627,0.064801879227161) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.130222022533417,-0.199102699756622,0.024756221100688,-0.029768578708172) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.217056050896645,-0.007983191870153,-0.116926454007626,-0.033174201846123) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.218849897384644,0.388457804918289,-0.103396989405155,0.359331101179123) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.147068455815315,-0.216506436467171,0.052589911967516,-0.286556661128998) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.044583775103092,-0.070411249995232,-0.079849705100060,0.038279574364424) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.019718699157238,0.025136575102806,-0.045630469918251,-0.086485274136066) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.012456325814128,-0.172596305608749,0.042930189520121,0.105914488434792) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.032214108854532,0.091195508837700,-0.059393800795078,0.130433782935143) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.093957878649235,-0.107299976050854,-0.008800571784377,0.039574008435011) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.049062713980675,0.032929450273514,-0.051280122250319,-0.055978313088417) * float(LUMA_texOff(vec2(2,2)));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE2
//!DESC [AiUpscale_HQ_3x_Photo] feature map 2

vec4 hook()
{
vec4 res = vec4(0.216019943356514,-0.009526289999485,0.322482317686081,-0.053433209657669);
res += vec4(-0.017327485606074,-0.015955725684762,-0.010086400434375,-0.100080132484436) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.136515557765961,0.065994940698147,0.080186180770397,0.107645362615585) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.028430348262191,0.048839755356312,0.079786829650402,0.026229942217469) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.082041807472706,-0.046853780746460,0.019526265561581,0.022340737283230) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.008950180374086,0.073455713689327,0.004997514188290,0.049900971353054) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.079764045774937,0.005208840128034,0.007956780493259,0.110926821827888) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.219931811094284,-0.132935658097267,0.214921385049820,-0.377718806266785) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.010339566506445,0.297655224800110,-0.286835432052612,0.155163243412971) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.095617979764938,-0.105814091861248,-0.007375007495284,-0.138718411326408) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.007765592541546,-0.034264210611582,0.002145031932741,0.088072963058949) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.099027156829834,-0.027041345834732,-0.038265731185675,-0.132137209177017) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.042685948312283,0.020163711160421,-0.232347726821899,-0.516996920108795) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.008905710652471,-0.306096971035004,-0.912437021732330,0.592373549938202) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.252165615558624,0.112263575196266,0.402336299419403,0.129119589924812) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.046353451907635,0.043706469237804,0.032931648194790,0.005786180030555) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.083715468645096,0.034861881285906,-0.022030724212527,0.221142828464508) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.111455366015434,0.067650839686394,0.046350251883268,0.341273039579391) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.149204254150391,0.197836950421333,-0.087875097990036,-0.191870138049126) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.056401491165161,-0.047356769442558,-0.131176412105560,-0.285291552543640) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.015379117801785,0.021459454670548,0.074272818863392,0.009617245756090) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.007475747261196,-0.062003090977669,0.003566074883565,-0.014499456621706) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.036313805729151,0.027430387213826,0.021687293425202,0.137394770979881) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.212869048118591,-0.105427116155624,0.000411687709857,-0.189775437116623) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.056922979652882,-0.082023665308952,-0.018183214589953,0.154760673642159) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.001068484387361,-0.049139119684696,0.033042594790459,-0.059018861502409) * float(LUMA_texOff(vec2(2,2)));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE3
//!DESC [AiUpscale_HQ_3x_Photo] feature map 3

vec4 hook()
{
vec4 res = vec4(0.043426424264908,-0.189262613654137,0.189512938261032,0.106537230312824);
res += vec4(-0.038773998618126,-0.037264220416546,-0.007242274936289,0.058376763015985) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.135073021054268,0.041635651141405,0.017563829198480,-0.073769472539425) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.097562149167061,0.036794118583202,-0.016252318397164,-0.046259831637144) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.046490143984556,0.023008735850453,-0.015858953818679,-0.087569326162338) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.081677503883839,0.028847681358457,0.006191384978592,0.059896223247051) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.078787595033646,0.098884277045727,-0.035271670669317,0.018076317384839) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.026283768936992,0.249575942754745,-0.017130218446255,0.260684549808502) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.156456515192986,0.065355569124222,0.070979617536068,0.171098664402962) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.250962018966675,-0.149847686290741,0.077348798513412,0.046729125082493) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.164930894970894,-0.049396213144064,-0.054964244365692,-0.055694926530123) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.083477407693863,0.103337630629539,-0.022547831758857,-0.035337314009666) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.201473444700241,0.394632518291473,0.007241925690323,-0.668744266033173) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.400204122066498,-0.144192352890968,-0.161332905292511,-0.370540380477905) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.470521807670593,-0.152616098523140,-0.265359491109848,0.312661558389664) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.130389124155045,-0.030407764017582,0.059819445014000,-0.055523000657558) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.009417061693966,-0.045038737356663,0.083198972046375,-0.039783541113138) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.055594716221094,0.221309676766396,0.112725295126438,-0.031803231686354) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.102369844913483,-0.146671950817108,-0.007897769100964,0.169985383749008) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.099305011332035,0.035112623125315,-0.139536172151566,-0.023791933432221) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.013966061174870,-0.019959025084972,-0.118240013718605,-0.048650681972504) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.020318882539868,-0.047774609178305,-0.031796921044588,-0.021103870123625) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.035626895725727,0.074663840234280,0.121680803596973,0.113846503198147) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.038920797407627,-0.068052746355534,-0.111095108091831,0.094308719038963) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.032490249723196,-0.012393401935697,0.059964723885059,-0.086720466613770) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.014877157285810,-0.031938437372446,0.032514471560717,0.066139049828053) * float(LUMA_texOff(vec2(2,2)));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE4
//!DESC [AiUpscale_HQ_3x_Photo] feature map 4

vec4 hook()
{
vec4 res = vec4(-0.050088100135326,0.005623394157737,0.080574981868267,0.006924598943442);
res += vec4(-0.031957589089870,-0.005726133473217,-0.010647912509739,-0.066533759236336) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.020705880597234,0.088600367307663,0.039733242243528,0.082778535783291) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.156270310282707,-0.049273863434792,0.038074195384979,-0.247606083750725) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.053227171301842,0.055822744965553,-0.038713458925486,0.008177605457604) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.025413861498237,-0.017793634906411,-0.036227550357580,0.019401721656322) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.035509284585714,-0.175930812954903,0.034307073801756,0.053785249590874) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.306315720081329,0.027442302554846,-0.055207733064890,-0.079770609736443) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.105221331119537,-0.578648269176483,-0.037967320531607,-0.163599789142609) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.013240192085505,-0.239243775606155,0.052366364747286,-0.025693273171782) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.078073702752590,-0.010991147719324,-0.014727528207004,-0.109012946486473) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.097700878977776,-0.008026647381485,-0.063922971487045,-0.066674798727036) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.157276272773743,-0.409500300884247,-0.237638726830482,0.336173444986343) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.133445233106613,1.105501413345337,0.189934864640236,-0.604750096797943) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.060040626674891,-0.039866965264082,0.033601533621550,-0.097885109484196) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.026350079104304,0.002435346599668,0.035615656524897,-0.096016958355904) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.186159238219261,0.010949165560305,-0.133521184325218,0.071392916142941) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.217810422182083,-0.218230620026588,-0.076383054256439,0.066082440316677) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.088702663779259,0.385572701692581,0.030441561713815,0.604890286922455) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.006860712543130,-0.070421561598778,-0.005216382443905,-0.088816732168198) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.048994757235050,0.075463935732841,0.035656400024891,-0.017780771479011) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.047718174755573,0.015023380517960,0.012979432009161,0.083203114569187) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.190626293420792,-0.080232210457325,-0.125675767660141,0.059901166707277) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.010817824862897,0.083900079131126,0.148595467209816,0.065959960222244) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.065095551311970,-0.030104603618383,0.047216609120369,0.094577312469482) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.000212316925172,0.045095808804035,0.012775721028447,0.057379357516766) * float(LUMA_texOff(vec2(2,2)));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE5
//!DESC [AiUpscale_HQ_3x_Photo] feature map 5

vec4 hook()
{
vec4 res = vec4(-0.252709269523621,-0.036740515381098,-0.461509048938751,-0.235232964158058);
res += vec4(-0.033555451780558,0.049346555024385,-0.007914183661342,0.003987733740360) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.046402994543314,-0.062486447393894,-0.116083510220051,0.018557285889983) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.027348892763257,0.162350058555603,0.129280254244804,-0.118014998733997) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.000520667061210,-0.082435406744480,-0.054805632680655,-0.040287014096975) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.018163289874792,-0.011389978230000,0.014888527803123,0.017848538234830) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.035751957446337,-0.010470818728209,-0.073791943490505,0.048886824399233) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.066368043422699,-0.072120107710361,0.075378470122814,-0.005998931359500) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.329072237014771,0.120675519108772,0.076258875429630,0.078471727669239) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.085642859339714,0.145548731088638,0.277806550264359,-0.320973902940750) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.045450277626514,0.004947207868099,-0.107465989887714,-0.048208214342594) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.111359104514122,0.008758706972003,0.160098135471344,-0.103837415575981) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.236678883433342,0.092948250472546,0.109395019710064,-0.416737228631973) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.409654676914215,0.706386506557465,0.531446456909180,1.524654269218445) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.147627934813499,-0.281020462512970,-0.047437231987715,0.192247077822685) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.020760854706168,-0.071153305470943,0.136300459504128,0.034055069088936) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.061104565858841,0.017247715964913,-0.037759218364954,0.025453349575400) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.222215563058853,0.142313361167908,0.033895589411259,-0.011718694120646) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.046372078359127,-0.327912241220474,0.247509762644768,-0.297976642847061) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.122427381575108,-0.264284610748291,0.030586561188102,-0.121755741536617) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.093456596136093,-0.002173319924623,-0.029391722753644,-0.079129442572594) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.014272395521402,-0.022522946819663,0.009641731157899,-0.091732360422611) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.065059959888458,0.022426668554544,-0.042288556694984,0.024703150615096) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.167341619729996,-0.195783644914627,0.018340559676290,-0.067410558462143) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.042629536241293,0.013455996289849,0.065753415226936,-0.003830022178590) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.065617121756077,0.005592604167759,-0.054447483271360,0.029837448149920) * float(LUMA_texOff(vec2(2,2)));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE6
//!DESC [AiUpscale_HQ_3x_Photo] feature map 6

vec4 hook()
{
vec4 res = vec4(0.029487723484635,-0.096140302717686,0.228908613324165,-0.021578852087259);
res += vec4(-0.076365076005459,0.035640608519316,-0.089102081954479,0.011380781419575) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.044775448739529,0.027780821546912,-0.034580610692501,0.151245966553688) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.188230484724045,0.024916620925069,-0.100176282227039,0.073192626237869) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.034315560013056,0.110718980431557,-0.088257998228073,0.011709378100932) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.010928844101727,-0.023862315341830,-0.079431809484959,0.020731663331389) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.040543403476477,-0.005972980987281,0.024289820343256,0.087085008621216) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.040540855377913,-0.357356965541840,-0.018149845302105,0.094431921839714) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.228841155767441,-0.150697246193886,-0.186829000711441,0.251688301563263) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.164044708013535,-0.020649621263146,0.064682625234127,-0.068901516497135) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.147971197962761,0.011735082603991,-0.080773405730724,-0.045947629958391) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.038969479501247,-0.046920657157898,0.015367316082120,-0.148618265986443) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.189695149660110,-0.185109734535217,0.030530301854014,-0.131492942571640) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.266113221645355,0.960582792758942,0.422515511512756,-0.008237786591053) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.033370830118656,-0.352779150009155,-0.251507431268692,-0.179024681448936) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.004354250617325,-0.061572078615427,0.069153308868408,0.041693117469549) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.011886577121913,-0.017813475802541,-0.005361267831177,-0.008509044535458) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.082965031266212,0.182834669947624,-0.028983976691961,-0.053662549704313) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.076941743493080,-0.088670156896114,-0.006666010245681,-0.230039805173874) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.058977842330933,0.128670439124107,0.067119896411896,0.172813996672630) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.074326731264591,0.031184203922749,-0.108760736882687,0.003549622371793) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.020037334412336,0.040386553853750,-0.033010594546795,0.025523992255330) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.087233453989029,0.051441635936499,-0.028468467295170,-0.018636448308825) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.128772929310799,-0.017603561282158,0.069691658020020,-0.048060312867165) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.075819119811058,-0.043389558792114,-0.138245612382889,0.025534724816680) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.071599304676056,0.008856291882694,-0.032916747033596,-0.000234772334807) * float(LUMA_texOff(vec2(2,2)));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL1
//!DESC [AiUpscale_HQ_3x_Photo] mapping 1_1

vec4 hook()
{
vec4 res = vec4(0.038097254931927,-0.020012278109789,-0.132938176393509,-0.235389038920403);
res += mat4(-0.094140693545341,-0.063771620392799,0.030870012938976,-0.017201796174049,-0.063493832945824,0.029462913051248,0.045638337731361,-0.039660815149546,0.115426450967789,0.053502149879932,0.093566574156284,-0.076375722885132,0.030295586213470,0.011369864456356,-0.035930357873440,-0.064380928874016) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.090598516166210,-0.182562068104744,-0.012818278744817,0.108295284211636,0.030412470921874,0.047032237052917,0.161055728793144,-0.213784396648407,-0.095367446541786,0.018353065475821,-0.023781809955835,0.081447809934616,-0.064727731049061,-0.056904859840870,-0.029294002801180,-0.043013483285904) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.013568151742220,-0.049475241452456,-0.005338144488633,0.041853539645672,0.117843665182590,0.032073255628347,0.105653874576092,-0.001050853985362,-0.029202401638031,-0.032715942710638,-0.074030570685863,-0.002673021052033,-0.047790478914976,-0.004072700161487,-0.051036950200796,0.024903906509280) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.205511555075645,-0.027350226417184,0.077782802283764,-0.107443682849407,0.107056394219398,0.064762346446514,0.016382109373808,0.060136355459690,0.044226594269276,-0.036645840853453,0.039654154330492,-0.085645772516727,0.071086123585701,-0.064601294696331,0.034964103251696,0.104519888758659) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.030699107795954,-0.165789008140564,0.014132726006210,-0.013391816988587,-0.046839695423841,-0.040452133864164,-0.020093446597457,-0.118853628635406,-0.064150266349316,-0.053086820989847,0.060085680335760,0.000596022873651,0.016268966719508,-0.120605207979679,-0.007458963897079,-0.020585428923368) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.069168068468571,-0.103196576237679,-0.066884391009808,0.056906074285507,-0.057955767959356,-0.058318562805653,0.049545202404261,-0.176169946789742,-0.042684525251389,-0.007691303268075,-0.028157979249954,0.034463513642550,-0.074235700070858,-0.024810366332531,0.040093991905451,-0.090491667389870) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.033511038869619,0.036963045597076,-0.160799428820610,0.084524706006050,-0.140666440129280,-0.010919745080173,0.029774477705359,0.144761070609093,0.016699468716979,0.067670226097107,-0.002627463545650,0.006539602298290,-0.150184929370880,0.116427376866341,-0.060559295117855,0.043909769505262) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.004350300878286,0.006225919350982,-0.083149589598179,-0.044640395790339,0.081923499703407,0.051243916153908,-0.146600827574730,0.167557328939438,-0.037000652402639,0.009948620572686,0.061444722115993,-0.082249276340008,0.026779145002365,0.114128239452839,-0.104718409478664,0.184062018990517) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.108528643846512,0.028010880574584,0.006934160832316,-0.018989283591509,-0.170454204082489,-0.034894924610853,-0.137051701545715,-0.053580287843943,-0.005866762716323,0.020078621804714,0.040418028831482,0.008095281198621,0.132863432168961,0.068062812089920,0.052292533218861,-0.001480760751292) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.039139386266470,-0.017884891480207,-0.056392308324575,0.036077111959457,0.106834352016449,0.046167414635420,-0.001070269849151,0.039058398455381,-0.008772317320108,-0.004022196400911,0.013460440561175,0.026282966136932,0.220846772193909,0.003408183576539,0.016694985330105,0.094441562891006) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.098736792802811,0.116225309669971,-0.036742642521858,0.093002311885357,-0.047613710165024,0.083263806998730,-0.048043537884951,-0.113410249352455,0.034130904823542,-0.000765254662838,-0.058522954583168,-0.026211101561785,-0.091481797397137,0.107712917029858,-0.091011926531792,0.022885497659445) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.059679292142391,0.111610658466816,0.011448025703430,0.012032108381391,-0.027726097032428,0.045480161905289,-0.036030486226082,-0.037647064775229,-0.047591421753168,0.071072265505791,0.004650231916457,-0.005538045428693,0.018033331260085,0.010842513293028,-0.039525739848614,0.035108145326376) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.021618450060487,0.087685570120811,-0.010364733636379,-0.033479552716017,-0.121844612061977,-0.085464328527451,-0.091704621911049,0.020663829520345,-0.086753934621811,0.050815742462873,-0.010412676259875,0.021509787067771,-0.144890904426575,-0.065069854259491,0.107495091855526,-0.131242752075195) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.008834329433739,0.261217623949051,0.051138173788786,0.005196645390242,-0.031778670847416,-0.021496161818504,-0.117087170481682,0.033679924905300,0.061544258147478,0.227440297603607,-0.076016470789909,0.082716204226017,-0.067747108638287,-0.109439164400101,-0.045310128480196,0.104897029697895) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.012215036898851,0.144637778401375,0.014963203109801,0.040097195655107,-0.040325637906790,-0.073675721883774,-0.048353552818298,-0.017230531200767,0.091192834079266,0.100899845361710,-0.033469058573246,-0.017787037417293,-0.125210866332054,0.037446770817041,-0.129139348864555,0.085570268332958) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.102548576891422,-0.088027209043503,0.046525165438652,0.004267750773579,0.127353191375732,-0.008964404463768,0.148359239101410,-0.122694768011570,0.010354761034250,-0.161088526248932,0.087418317794800,-0.173038452863693,0.047820672392845,0.062195010483265,-0.080748714506626,-0.309789896011353) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.119360379874706,-0.001662338152528,-0.038468956947327,-0.024791581556201,-0.019286461174488,-0.015370574779809,0.114670187234879,0.014659453183413,0.012747474946082,-0.113493412733078,0.130695268511772,-0.010134642012417,-0.158267334103584,0.024245284497738,0.076275996863842,-0.063627168536186) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.079403772950172,-0.026236971840262,0.017475886270404,-0.011344506405294,0.111643597483635,-0.047503575682640,0.007369714789093,0.046921063214540,0.045742452144623,-0.125007510185242,0.003552245674655,0.086627699434757,0.005788219161332,0.013117149472237,0.148179516196251,0.126085832715034) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.151947319507599,-0.013441175222397,0.019980285316706,-0.004236703272909,0.006898642983288,0.077943868935108,0.022937502712011,0.023812826722860,0.034005343914032,-0.066695533692837,-0.012418474070728,0.053181778639555,-0.052408345043659,-0.009732241742313,-0.020378490909934,0.075787723064423) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.091461181640625,-0.015669515356421,0.054828520864248,0.002587307244539,-0.006411175709218,0.017513453960419,0.019506901502609,-0.064844332635403,0.082103855907917,0.051204189658165,0.005586948245764,0.014276865869761,0.022449042648077,-0.056970234960318,-0.073615409433842,0.059069350361824) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.119633443653584,-0.101042747497559,-0.032803244888783,-0.023695670068264,0.029510356485844,0.014548584818840,-0.027185322716832,-0.029787460342050,0.068153731524944,-0.038645640015602,0.076592274010181,0.016677169129252,0.051980540156364,-0.073416538536549,0.002056051511317,-0.061621148139238) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.071169182658195,0.010636530816555,-0.006221695337445,-0.053985446691513,0.057591062039137,-0.027290267869830,0.012160841375589,0.056603822857141,-0.018274571746588,0.021690234541893,-0.054434251040220,0.087996125221252,-0.046986840665340,-0.086612351238728,0.035149998962879,-0.106028303503990) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.050131138414145,-0.082974523305893,0.028741905465722,0.051708579063416,0.005788022652268,-0.098276913166046,0.005754841025919,-0.019221758469939,0.041220489889383,0.087748177349567,-0.065331131219864,0.020804604515433,-0.037648610770702,0.052541475743055,-0.033577717840672,0.109385982155800) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.143735006451607,0.001887631253339,0.048029210418463,0.004750445019454,0.022288342937827,-0.088401094079018,0.029832538217306,-0.051380746066570,-0.033075783401728,0.105291448533535,-0.071935147047043,0.017277967184782,0.074490450322628,-0.025990778580308,-0.061473231762648,0.043026644736528) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.199178412556648,-0.123168483376503,-0.060416452586651,0.165377959609032,0.018194140866399,0.060021068900824,-0.033281106501818,0.050195362418890,0.004314268473536,-0.146734505891800,0.109312362968922,-0.054374083876610,0.087507076561451,0.023331759497523,0.115593299269676,-0.156247302889824) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.054662991315126,-0.027645712718368,-0.020884357392788,-0.010044586844742,-0.023838181048632,0.089510068297386,0.008357091806829,0.044671464711428,-0.151865079998970,-0.109033986926079,0.062785834074020,0.061846628785133,0.069106280803680,-0.019727189093828,0.201361447572708,-0.105609193444252) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.034659732133150,-0.094102904200554,-0.092379830777645,-0.092346064746380,0.052404630929232,0.099395751953125,-0.032577656209469,-0.000924475723878,0.013034142553806,-0.094519481062889,0.058835558593273,0.047469928860664,0.042123723775148,-0.046095240861177,0.082129746675491,0.049752153456211) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.059663865715265,0.063341185450554,0.047761566936970,0.004107148852199,-0.024525716900826,0.004963315557688,0.102374918758869,-0.106076307594776,-0.063501633703709,-0.087233409285545,-0.027364000678062,0.018292093649507,-0.122171394526958,-0.063029892742634,-0.109320186078548,-0.026647567749023) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.050672650337219,-0.027762582525611,0.027638722211123,0.005029592663050,0.056241501122713,-0.029924102127552,0.026172021403909,0.066871486604214,0.025622259825468,-0.020111510530114,0.057237606495619,-0.045518051832914,0.064727656543255,-0.081552885472775,0.030230877920985,-0.108537621796131) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.037642836570740,0.000594198238105,-0.071654312312603,0.044526558369398,-0.060187842696905,0.007091344799846,-0.080835722386837,0.045689910650253,-0.057111743837595,-0.035788029432297,-0.027994912117720,0.046329427510500,0.033566739410162,-0.074909970164299,0.050512515008450,0.038845319300890) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.136569738388062,0.009376666508615,-0.006211594212800,-0.040950898081064,0.028389643877745,-0.037472702562809,-0.038264792412519,-0.087038837373257,0.070739902555943,0.034714091569185,0.043980263173580,0.005760081112385,-0.204299077391624,-0.110848069190979,-0.126639753580093,0.170075669884682) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.115162424743176,-0.036210231482983,-0.060549940913916,0.000662095670123,-0.022784210741520,-0.101245254278183,0.084284804761410,-0.027607617899776,-0.003895428963006,0.041892673820257,-0.008928366005421,-0.018811617046595,0.089999288320541,-0.152432695031166,-0.015339328907430,-0.054772999137640) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.114370159804821,0.031207438558340,0.089385300874710,-0.056626845151186,0.020349435508251,0.047455750405788,0.065980553627014,0.048986870795488,0.016141181811690,0.051220826804638,0.011896417476237,-0.070228271186352,0.042870890349150,-0.165507450699806,0.058516032993793,-0.043151799589396) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.076197691261768,-0.046891253441572,0.033527161926031,0.132676869630814,-0.272603660821915,-0.078572392463684,-0.244814500212669,0.249984055757523,0.011207594536245,-0.100115388631821,0.016623605042696,0.095921650528908,0.061392296105623,0.033953785896301,0.082610085606575,0.015134454704821) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.277234047651291,0.022334836423397,0.102056182920933,-0.009158886969090,0.250622659921646,-0.067775383591652,-0.104996845126152,-0.064480088651180,0.197600811719894,-0.084516853094101,0.045459836721420,0.023924522101879,0.022343240678310,0.078847892582417,-0.050262358039618,0.164650246500969) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.080921098589897,-0.011692973785102,-0.010525491088629,-0.011629458516836,0.042527943849564,-0.093953922390938,0.071328274905682,-0.057355903089046,0.021235495805740,-0.106700398027897,0.066638335585594,-0.045237008482218,0.014006813988090,0.004275476559997,-0.061714392155409,-0.071255564689636) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.006356521975249,-0.080862998962402,0.032267864793539,0.009996330365539,0.195331528782845,0.006049344781786,0.076170235872269,0.084226585924625,0.046469900757074,0.071362003684044,0.030469190329313,-0.075392983853817,0.007517204154283,0.060276005417109,0.084418401122093,0.013187825679779) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.107284344732761,-0.088940382003784,-0.018527891486883,0.019918885082006,-0.083711527287960,0.082108303904533,0.041278131306171,0.127579644322395,0.009885285980999,-0.081860885024071,0.066015437245369,0.026988128200173,0.081882052123547,0.127185121178627,-0.038065101951361,0.050132397562265) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.074268974363804,-0.037156030535698,-0.032823327928782,0.025421507656574,0.026589667424560,0.053413677960634,0.004606059286743,0.074593774974346,-0.035823650658131,-0.052652701735497,-0.003231839975342,0.023799462243915,0.047783549875021,0.055761046707630,-0.118152730166912,-0.048262652009726) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.038193363696337,-0.082617625594139,0.032620057463646,0.012762133032084,0.117897540330887,0.068114973604679,0.048612955957651,0.028906362131238,0.130843058228493,-0.110396869480610,0.031824883073568,0.008811634033918,0.014200978912413,0.019264714792371,0.109188012778759,-0.176666483283043) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.031616047024727,-0.195603266358376,0.110401324927807,-0.002438758034259,-0.054840505123138,0.052608150988817,0.026742450892925,0.024875700473785,-0.140752822160721,-0.333443492650986,0.017619734629989,-0.020831080153584,-0.179576650261879,-0.068746976554394,0.074985839426517,0.008535899221897) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.031936604529619,-0.074239410459995,0.008968940004706,0.049439854919910,0.071055099368095,0.107248224318027,-0.028668321669102,0.047955397516489,0.070297114551067,-0.120808422565460,0.098260745406151,-0.005250019952655,-0.172310054302216,0.110837444663048,-0.108789294958115,0.022650320082903) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.079920262098312,0.089870765805244,-0.128892406821251,0.007296898867935,0.010923713445663,-0.045506890863180,-0.038196027278900,0.100572496652603,-0.022158320993185,0.194432422518730,0.026020919904113,0.108991093933582,-0.023122666403651,0.179240137338638,-0.286139845848083,0.079230755567551) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.033325459808111,0.067655794322491,-0.036513108760118,-0.057185284793377,-0.150257363915443,-0.033380825072527,-0.062736645340919,0.002479160903022,0.064751356840134,0.120236717164516,0.059903290122747,0.073118098080158,0.058586861938238,0.162409290671349,-0.035381250083447,-0.159970059990883) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.108268700540066,0.059955958276987,0.067771635949612,-0.026948267593980,0.003764787921682,-0.018483664840460,-0.025258054956794,0.060757644474506,0.016591710969806,0.128235474228859,-0.012876192107797,-0.012856149114668,0.188257575035095,0.126860111951828,0.117668502032757,-0.012525657191873) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.035502314567566,0.027149667963386,0.021323373541236,-0.026706054806709,-0.006463676225394,-0.058672517538071,0.009532211348414,0.084101125597954,-0.002789056161419,-0.030091421678662,0.045959733426571,0.007344441488385,0.010910933837295,-0.046311266720295,0.014405179768801,0.001409008516930) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.088982708752155,0.043970514088869,-0.031382910907269,0.056003458797932,-0.076967932283878,0.018115686252713,0.009845850989223,0.080014474689960,0.051186732947826,0.074861086905003,0.031280517578125,0.032449711114168,0.020198773592710,0.031485870480537,-0.003587145823985,0.032039314508438) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.058568626642227,0.077718392014503,0.026881966739893,0.017181999981403,0.009380440227687,-0.055574815720320,-0.049470070749521,0.038225498050451,-0.070182926952839,-0.039354830980301,-0.023301627486944,0.037049643695354,-0.101319171488285,-0.030544063076377,-0.117065511643887,0.042593222111464) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.047415722161531,0.055825810879469,-0.012307194061577,0.040737122297287,0.049806818366051,-0.051855113357306,0.046023163944483,-0.056480281054974,0.061566922813654,0.071956694126129,0.002155131427571,-0.002411592053249,-0.124630868434906,-0.004819791298360,0.022262660786510,-0.075400732457638) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.004554781131446,0.073522925376892,-0.033061064779758,-0.009667846374214,0.005316873546690,-0.130055829882622,0.095254510641098,0.028265718370676,0.037586711347103,0.079716004431248,0.018169578164816,-0.013102702796459,-0.050662148743868,-0.013769908808172,0.031598880887032,-0.022780310362577) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.097127452492714,0.048717346042395,0.041696131229401,-0.041528433561325,0.028309009969234,-0.020084356889129,0.040619239211082,0.106337502598763,-0.080580689013004,0.104718558490276,0.001565666869283,0.023118339478970,0.042743645608425,0.045705340802670,0.010003467090428,0.070691451430321) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.112770035862923,-0.028501315042377,0.170929759740829,-0.081924803555012,-0.091028131544590,-0.018662387505174,-0.148459836840630,0.110289834439754,-0.184581711888313,-0.172984510660172,-0.078283116221428,0.128623619675636,0.223663404583931,-0.019925480708480,0.015817802399397,-0.047638140618801) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.062996059656143,-0.035456597805023,0.071406371891499,-0.011798677034676,-0.036865986883640,-0.027088128030300,-0.138619303703308,-0.012526807375252,0.082631081342697,-0.119719229638577,-0.085119090974331,0.025115929543972,0.023254774510860,-0.027318025007844,0.112929306924343,-0.153777286410332) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.031085934489965,0.000936417141929,-0.084393478929996,-0.031706128269434,0.082404099404812,0.032294787466526,-0.024284441024065,-0.011117191053927,0.074973642826080,-0.129225075244904,0.030263429507613,0.010895835235715,0.047659523785114,-0.007750506047159,0.097179152071476,-0.097103528678417) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.356226444244385,0.004276954568923,-0.120586104691029,-0.134560897946358) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL2
//!DESC [AiUpscale_HQ_3x_Photo] mapping 1_2

vec4 hook()
{
vec4 res = vec4(-0.247428163886070,-0.423205256462097,-0.265087336301804,-0.201776146888733);
res += mat4(-0.091343618929386,-0.085452020168304,-0.053839832544327,0.022026930004358,-0.125686734914780,0.013329232111573,0.026188140735030,0.065702468156815,0.043071392923594,-0.000939402845688,-0.011069521307945,0.011467747390270,-0.116345867514610,-0.029326485469937,0.009842806495726,-0.031037563458085) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.212301567196846,-0.000281260319753,0.058833725750446,0.048469122499228,-0.021603552624583,0.045577228069305,0.029739122837782,0.008898610249162,-0.102856338024139,0.044796559959650,-0.092281036078930,-0.002262098947540,-0.057153776288033,0.030653744935989,-0.011548615992069,0.049207258969545) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.007683900650591,0.011041582562029,0.152344435453415,-0.018155671656132,-0.001126126036979,0.011307072825730,-0.017744449898601,0.001457463600673,-0.005953105632216,-0.000910363218281,0.177693888545036,0.010740851052105,0.124107919633389,0.056151971220970,0.122334830462933,0.011100062169135) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.025773471221328,-0.176168680191040,-0.051469445228577,-0.028994763270020,-0.091518312692642,0.031550638377666,-0.005086086690426,0.004818830173463,0.068466924130917,-0.019964659586549,-0.050689358264208,0.061187215149403,0.014318709261715,-0.022960083559155,0.029779529199004,0.032422374933958) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.008059004321694,0.047591552138329,0.096643745899200,0.120561435818672,0.108328916132450,0.001683807582594,0.022614482790232,0.007878836244345,0.059161935001612,0.092686057090759,-0.044371459633112,0.067787386476994,0.095061905682087,0.078796990215778,-0.040420591831207,0.018731892108917) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.049443013966084,0.022709250450134,0.062833286821842,0.069484837353230,0.096475869417191,0.065953850746155,-0.011891889385879,0.026912696659565,0.081378847360611,-0.018308527767658,0.059480514377356,-0.078449331223965,0.030016701668501,0.000852667959407,-0.067329473793507,-0.045964937657118) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.004872603807598,-0.132081896066666,0.054730486124754,-0.217555522918701,0.027746757492423,0.018936112523079,-0.035517912358046,0.004790482576936,-0.036449529230595,-0.028381496667862,-0.052640266716480,-0.013986370526254,-0.003318289527670,-0.019774643704295,-0.063316866755486,-0.034674245864153) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.032801199704409,0.040368009358644,0.072735108435154,-0.103311963379383,0.100044786930084,0.046043802052736,-0.025339335203171,-0.025098707526922,-0.042150825262070,0.047629106789827,-0.008044706657529,0.009128673933446,-0.054882101714611,0.017925417050719,0.067080624401569,0.056998498737812) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.013597363606095,0.084726490080357,0.017891600728035,0.000988090876490,-0.034734521061182,-0.048098761588335,0.030258713290095,-0.081023789942265,0.058139458298683,0.021068483591080,-0.013214067555964,0.001668610610068,-0.072366446256638,0.051934890449047,-0.013997410424054,-0.017854545265436) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.048182602971792,0.015771847218275,-0.007306841202080,0.071184448897839,0.030669389292598,-0.026325032114983,0.003692533588037,0.085921734571457,-0.068129904568195,0.033357311040163,-0.008722969330847,0.005376786924899,-0.038628183305264,0.004047555848956,-0.062144946306944,0.000964988488704) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.072190552949905,0.056341420859098,0.029653092846274,0.082051493227482,0.161855801939964,0.063568219542503,0.019370829686522,-0.028356466442347,0.204278349876404,-0.045217249542475,0.124648854136467,-0.028487512841821,-0.197310283780098,0.023790463805199,0.062686659395695,-0.012496137991548) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.027600351721048,0.016398349776864,0.011970506049693,-0.012171229347587,-0.001962452428415,0.007045175880194,-0.078995287418365,-0.042887620627880,0.060465466231108,0.029481263831258,-0.182214379310608,-0.028288153931499,0.068835139274597,0.062625728547573,0.205102860927582,0.006253804080188) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.116041965782642,-0.045631725341082,0.061524078249931,0.048339430242777,0.073110520839691,0.026041220873594,0.047591146081686,-0.001416463521309,0.088254190981388,0.022221539169550,0.047809164971113,0.083644412457943,-0.005455831997097,-0.038180388510227,0.080355703830719,0.117529310286045) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.057646352797747,0.083648487925529,-0.045500647276640,0.064977772533894,-0.055080655962229,-0.037654429674149,-0.043280076235533,-0.086148671805859,0.038783885538578,-0.089267313480377,-0.002651865128428,-0.113212421536446,0.086615011096001,0.139154464006424,-0.048289079219103,0.108677893877029) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.031112119555473,0.029061421751976,-0.004466696642339,0.092548713088036,-0.034259915351868,0.026853101328015,0.092861898243427,-0.013947038911283,-0.137299776077271,-0.062408044934273,-0.121999956667423,0.047794956713915,0.203751683235168,-0.055892702192068,-0.010421838611364,-0.224776610732079) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.002049532253295,0.028641095384955,0.071556411683559,-0.070704050362110,-0.046969868242741,-0.006704233121127,-0.057699587196112,0.008623726665974,0.013591691851616,-0.021019924432039,0.022746367380023,0.025183452293277,0.104874871671200,-0.061596825718880,-0.099368646740913,-0.041348863393068) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.022977355867624,0.071995362639427,0.069887943565845,0.047510784119368,-0.020330086350441,0.033867098391056,-0.007876311428845,0.064786002039909,-0.096526071429253,-0.083600752055645,0.019655620679259,0.058256708085537,0.034154668450356,0.094708286225796,-0.030151270329952,0.012914367020130) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.020975818857551,0.026207394897938,-0.042852021753788,0.052243713289499,-0.003083138028160,-0.008801747113466,-0.051145788282156,-0.067121773958206,-0.100631229579449,0.008627433329821,0.036018911749125,0.020977925509214,-0.039551991969347,-0.010769568383694,0.051129989326000,0.039728835225105) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.042742408812046,0.035865023732185,-0.050302114337683,-0.097149349749088,-0.039976049214602,-0.002843085443601,-0.006433304399252,0.026092357933521,0.007096467074007,0.007347307167947,-0.012254286557436,-0.025207765400410,-0.041271403431892,0.027974175289273,0.046262547373772,0.035958871245384) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.026344580575824,0.007607584819198,-0.033998366445303,-0.043275263160467,-0.084806360304356,-0.096638992428780,-0.073349028825760,-0.011782498098910,-0.039182920008898,-0.026294047012925,-0.020503001287580,-0.051390562206507,0.206645265221596,0.094369433820248,0.017636183649302,0.067294694483280) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.246021658182144,-0.036942671984434,-0.033156435936689,0.012333800084889,-0.147223800420761,0.057641021907330,-0.020162235945463,0.150766119360924,-0.022873900830746,-0.004675308242440,-0.046783540397882,0.025819361209869,0.238678529858589,-0.039195016026497,-0.116772904992104,-0.176581084728241) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.226226925849915,0.063806362450123,-0.050649330019951,-0.054774865508080,0.002185879740864,0.050275269895792,-0.013508076779544,-0.006214721594006,-0.039840064942837,0.021553838625550,-0.004207602702081,0.052104018628597,0.039333458989859,0.017620744183660,0.024633234366775,-0.021627848967910) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.076668970286846,0.082153342664242,0.080089665949345,0.091815948486328,-0.071932308375835,-0.174258947372437,-0.029107766225934,-0.106297746300697,-0.027258377522230,-0.074954047799110,-0.003506443230435,-0.031478218734264,0.043402478098869,0.101710096001625,-0.017982237040997,-0.034637987613678) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.016536768525839,-0.035426367074251,-0.073439434170723,-0.129433423280716,-0.063037760555744,0.045170813798904,0.017816297709942,0.104908652603626,0.037920251488686,-0.005540747195482,0.042851027101278,0.051188185811043,-0.120588690042496,-0.124837525188923,0.017672594636679,-0.106673024594784) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.023111745715141,0.054435737431049,-0.000307530135615,0.088637150824070,-0.066680252552032,0.007101188879460,0.028857780620456,0.076053105294704,0.021846046671271,0.003275004215539,-0.009384948760271,0.036813359707594,-0.049063906073570,-0.032779261469841,-0.052347935736179,-0.110335022211075) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.124505817890167,0.011325489729643,0.017230674624443,-0.061691161245108,-0.007712542545050,-0.123045407235622,0.032277721911669,-0.102813012897968,0.030063901096582,-0.030641667544842,0.028182104229927,0.014764203689992,-0.038754053413868,0.065671198070049,0.005929922219366,0.082544125616550) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.011223592795432,-0.059702008962631,-0.029990382492542,-0.032434135675430,0.011429097503424,0.026301302015781,0.009604223072529,-0.070459388196468,0.062404263764620,-0.036543712019920,0.011973612010479,-0.025273229926825,-0.013962187804282,0.038519028574228,0.026494335383177,0.129714548587799) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.059568505734205,-0.005970191210508,0.109458841383457,-0.029451468959451,-0.001489125890657,-0.069932296872139,0.010023961775005,-0.045079674571753,0.028133101761341,-0.032624114304781,0.008418648503721,-0.027562307193875,-0.009495167061687,-0.023699754849076,-0.123825624585152,-0.044288840144873) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.047147881239653,-0.042603142559528,-0.061555888503790,0.013362779282033,-0.031637929379940,0.088968612253666,0.025876376777887,0.058345641940832,-0.045007001608610,0.031899817287922,0.017191277816892,-0.047656245529652,0.235694304108620,0.013328332453966,0.125116452574730,0.008129225112498) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.077574439346790,0.092320159077644,0.095097802579403,0.105062395334244,0.158158779144287,0.045516312122345,0.132024675607681,-0.085471145808697,0.038529407233000,0.000546777388081,0.061084948480129,-0.051105961203575,0.046601258218288,-0.034827735275030,-0.312613755464554,-0.075088769197464) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.027236782014370,0.018813716247678,-0.004617040976882,0.018780199810863,-0.045090798288584,-0.105407834053040,-0.080202549695969,-0.062742836773396,-0.031602345407009,-0.024275736883283,0.022233245894313,-0.038357961922884,-0.012081556022167,0.069745659828186,0.026293652132154,-0.047979224473238) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.085041813552380,0.020775666460395,0.001465161330998,0.034922994673252,0.125440046191216,0.234849870204926,-0.052454546093941,0.232137516140938,0.022931547835469,0.105665862560272,0.019182831048965,0.086560167372227,-0.040022492408752,-0.150589734315872,0.031311623752117,-0.240777537226677) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.072218678891659,-0.020923472940922,-0.101323157548904,-0.078195743262768,-0.012404539622366,-0.010803863406181,-0.182171002030373,-0.089045964181423,0.039212115108967,-0.002684313338250,-0.043226134032011,-0.064440056681633,-0.152442276477814,0.032586783170700,-0.060233034193516,0.044249471276999) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.087913461029530,0.030096031725407,0.067565076053143,0.004546178039163,0.063546538352966,0.051508016884327,-0.033189360052347,-0.007251472678035,-0.035999536514282,0.006982550024986,0.048419512808323,-0.075057983398438,0.065037645399570,0.063999496400356,0.004754290450364,0.035938419401646) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.041182536631823,0.002013618592173,-0.085599087178707,-0.115564189851284,0.054143164306879,0.102015584707260,0.063938811421394,-0.019662350416183,0.007133985869586,0.084178730845451,-0.017564138397574,-0.004639600869268,0.091821849346161,-0.048022937029600,0.097017765045166,0.016015293076634) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.002669444540516,0.017134344205260,0.030490733683109,0.053586557507515,0.012639599852264,0.055967070162296,-0.024004437029362,-0.006766161415726,-0.037967529147863,0.006730023771524,-0.026477068662643,0.012512377463281,-0.014328852295876,-0.028755057603121,-0.036867499351501,-0.050198875367641) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.018751684576273,-0.044851448386908,-0.009777752682567,0.025014022365212,0.022424625232816,0.021836688742042,0.039066690951586,-0.010610684752464,0.035437699407339,-0.050266664475203,0.107180237770081,-0.007122484501451,-0.113094247877598,-0.052064508199692,0.015238840132952,0.115080714225769) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.090406745672226,0.037616830319166,-0.074322104454041,-0.018157795071602,-0.368829876184464,-0.054703552275896,-0.147577419877052,0.035230707377195,-0.119330070912838,0.018850224092603,-0.127506375312805,-0.007932046428323,-0.311313509941101,0.072713084518909,0.004634772893041,0.064731463789940) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.097204521298409,-0.002052721334621,0.053913023322821,-0.035464309155941,-0.145384252071381,0.044226519763470,0.274857610464096,0.138953953981400,0.101827427744865,0.001726229558699,0.157123327255249,0.013353174552321,0.002650990383700,0.070524461567402,0.268754005432129,-0.023276256397367) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.033467441797256,-0.001320957904682,-0.039649851620197,0.021113889291883,-0.127816975116730,0.007287482265383,0.002001564484090,0.118501707911491,-0.107992365956306,-0.047255408018827,-0.115824997425079,-0.067513518035412,-0.029064869508147,-0.084481798112392,0.007334012538195,-0.033964384347200) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.055361218750477,0.036145105957985,-0.023706018924713,0.056904725730419,0.018538435921073,0.065651945769787,0.001453585457057,0.173158705234528,0.085451073944569,0.042713042348623,0.063074164092541,0.016509618610144,0.080983228981495,0.258476376533508,-0.068597026169300,0.317472994327545) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.095436960458755,0.041548218578100,0.053295265883207,-0.010417073033750,0.171031087636948,0.008716548793018,0.007428754586726,-0.025347264483571,0.009305230341852,0.015415814705193,0.043948601931334,-0.154141589999199,0.035366535186768,0.001537933479995,-0.170213446021080,-0.070364154875278) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.102661103010178,-0.038165114820004,-0.014257067814469,-0.022490672767162,0.006379345431924,-0.014378862455487,0.029819309711456,0.026536008343101,0.063909336924553,-0.040428742766380,-0.039357565343380,-0.059181548655033,0.025244433432817,-0.001723926863633,-0.055598977953196,-0.063130125403404) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.039939597249031,0.039794959127903,0.016569107770920,-0.042848616838455,0.009295475669205,-0.018121432512999,-0.048715379089117,-0.044195998460054,0.004105235449970,0.029857836663723,-0.038726538419724,-0.081851489841938,0.044006459414959,0.147670060396194,-0.027653932571411,-0.106263540685177) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.021008275449276,0.040930062532425,-0.006462584249675,-0.079447381198406,0.011796494945884,-0.038561765104532,0.035896923393011,0.042198233306408,0.028928887099028,0.003561838995665,-0.011912107467651,-0.047230966389179,-0.046316310763359,0.091089740395546,0.059180997312069,0.035279195755720) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.065412424504757,0.015459669753909,0.006581910420209,0.002845504088327,0.109596766531467,-0.022914180532098,-0.086378358304501,-0.083647169172764,0.039951372891665,-0.013280605897307,-0.049760658293962,-0.039328295737505,0.139138653874397,-0.019268412142992,0.015125566162169,0.009262047708035) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.080806881189346,0.038642417639494,0.001404939917848,-0.016856456175447,-0.305880874395370,-0.008986345492303,-0.070045575499535,-0.018581876531243,-0.103249855339527,0.007587823085487,-0.032250374555588,-0.048154711723328,-0.019053522497416,-0.006027150899172,-0.036845587193966,-0.079345434904099) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.002449844265357,0.005910914391279,0.078069254755974,0.053754169493914,0.135324954986572,0.007138419430703,0.215227305889130,0.042576964944601,-0.026205012574792,0.005676708649844,0.014283575117588,0.069223612546921,-0.145594000816345,0.001416373881511,0.029744582250714,-0.009055562317371) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.040632333606482,0.053782455623150,-0.022684689611197,0.076183520257473,-0.117592178285122,-0.040253892540932,-0.001189356553368,-0.041414413601160,-0.098252251744270,-0.044102251529694,-0.027031406760216,-0.044468026608229,0.025389337912202,0.039698034524918,0.009375638328493,-0.031274933367968) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.075613811612129,-0.030192470178008,0.054191846400499,-0.000742988544516,0.023470187559724,0.147551581263542,-0.013952521607280,0.162178426980972,0.010449633002281,0.077334158122540,0.044237256050110,0.114910304546356,-0.059183325618505,0.005353884771466,-0.004273336380720,0.040259711444378) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.075088500976563,0.011515249498188,0.023681776598096,0.012716810218990,0.157586351037025,0.001308129285462,-0.036793824285269,-0.154407694935799,-0.009529655799270,0.056347932666540,0.017033733427525,0.030869435518980,0.024532517418265,0.034762956202030,0.071156606078148,-0.006807648111135) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.014306154102087,0.019511496648192,0.017283171415329,0.034987628459930,-0.000815529958345,0.034169517457485,-0.019776515662670,0.010145931504667,0.036124441772699,0.002726427745074,-0.008826280012727,0.055901341140270,-0.062927946448326,0.038456954061985,0.067147612571716,-0.005727223120630) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.003604705212638,0.018798204138875,0.003085647709668,0.026972854509950,0.040637776255608,0.036169942468405,-0.036565411835909,-0.076247587800026,0.048739925026894,0.007814946584404,-0.008075305260718,-0.016836162656546,-0.051524203270674,0.013616835698485,-0.005913078784943,-0.045124933123589) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.048779778182507,-0.064582951366901,-0.076561406254768,-0.010542809031904,-0.003528680419549,-0.057127129286528,0.064267255365849,-0.041907615959644,-0.041438959538937,-0.008051618933678,-0.017533695325255,-0.066931731998920,0.013836881145835,-0.006622594315559,-0.009981274604797,-0.014639926142991) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.008649385534227,-0.007039664778858,0.227441728115082,-0.005022382363677) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL3
//!DESC [AiUpscale_HQ_3x_Photo] mapping 1_3

vec4 hook()
{
vec4 res = vec4(-0.373795241117477,-0.148328125476837,-0.186069935560226,0.259854108095169);
res += mat4(-0.070190399885178,-0.019249850884080,-0.049608092755079,-0.136307016015053,0.014288532547653,-0.014975422061980,0.077410355210304,0.041617941111326,0.013511607423425,-0.003577935975045,-0.114798314869404,0.017301509156823,-0.038372702896595,0.017023954540491,0.021709406748414,0.086447738111019) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.127505913376808,0.011933224275708,0.005519992671907,0.066815160214901,0.129235923290253,0.012124737724662,-0.107492648065090,-0.092331945896149,-0.010312293656170,0.021198671311140,-0.027416175231338,0.053490072488785,0.062688186764717,0.025298135355115,-0.089121960103512,-0.211020335555077) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.036655042320490,0.060856841504574,0.069840349256992,0.068790838122368,-0.127571612596512,-0.010635036975145,-0.012229404412210,0.002889913739637,-0.003745205234736,0.075578227639198,0.081665970385075,-0.059328157454729,-0.096869401633739,-0.006405089516193,0.023239701986313,0.051215469837189) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.077830538153648,-0.044923614710569,-0.016041036695242,-0.199735045433044,0.050468951463699,0.005420360248536,-0.018123673275113,-0.008716260083020,0.012833721004426,-0.040012035518885,0.014243943616748,0.044563643634319,-0.053877763450146,-0.035955697298050,0.021725490689278,-0.205272138118744) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.285113811492920,-0.003901028307155,-0.076347745954990,-0.311763912439346,0.064752407371998,0.007486254908144,-0.032478261739016,-0.073683589696884,-0.009540962055326,0.002912341849878,-0.094720073044300,-0.227235063910484,-0.060506939888000,0.017467804253101,0.026973981410265,-0.188945308327675) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.447036296129227,0.061786595731974,0.070244178175926,-0.234229594469070,-0.131189882755280,-0.043955408036709,-0.055631786584854,-0.129733473062515,-0.219068482518196,0.075224854052067,0.059086922556162,0.104110278189182,-0.122088752686977,-0.021364603191614,0.020965393632650,0.018692219629884) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.080650068819523,-0.017157765105367,-0.024221532046795,-0.152562066912651,-0.016167260706425,-0.053957305848598,0.049481857568026,0.049084130674601,0.000910585164092,-0.008756075985730,-0.017968179658055,0.009095204994082,0.007594535127282,-0.007529689464718,0.017309512943029,0.030059268698096) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.090227417647839,-0.023497773334384,0.004136352334172,-0.046111732721329,0.042216945439577,0.034522168338299,-0.095944628119469,0.035716719925404,-0.000197365734493,-0.001246189349331,-0.018135292455554,-0.050648856908083,0.081134133040905,0.003839771263301,-0.012411365285516,0.061544757336378) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.084265999495983,0.062778957188129,0.055743984878063,-0.084866054356098,-0.046408377587795,-0.065014816820621,0.066249415278435,0.124893628060818,-0.091810606420040,0.048152454197407,0.028430415317416,-0.071115136146545,0.061909172683954,-0.051488235592842,-0.032375048846006,0.012047820724547) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.028860196471214,0.026042595505714,0.010330857709050,0.012408087030053,-0.038019824773073,-0.040494181215763,0.095154754817486,0.004391607828438,-0.040337227284908,0.050848208367825,0.042253527790308,0.003735969075933,-0.039834219962358,0.081598214805126,-0.037232499569654,-0.032391015440226) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.012430810369551,0.065323106944561,0.094373576343060,0.049685269594193,0.017974231392145,0.033133950084448,-0.005306502804160,-0.122123993933201,0.005979724228382,0.040465623140335,0.019264092668891,0.045863412320614,0.090929910540581,0.009240671060979,0.020910833030939,0.034208070486784) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.056343395262957,0.079070955514908,0.094685472548008,-0.043575480580330,-0.081442274153233,-0.005437748972327,0.005572479683906,0.030940514057875,0.110047467052937,-0.033819690346718,-0.138476148247719,-0.032494179904461,0.014684403315187,0.038836330175400,0.029849708080292,0.019718451425433) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.026610141620040,0.036662399768829,-0.003506558481604,-0.101573653519154,0.018992656841874,0.002090778434649,-0.016717635095119,-0.084764927625656,-0.002233820967376,0.033129695802927,-0.052254732698202,-0.244844987988472,-0.002596282633021,0.071091696619987,-0.000924227235373,-0.065938584506512) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.049904830753803,0.060600701719522,0.089653462171555,0.104862242937088,-0.063103765249252,0.004158124327660,0.133481442928314,0.259823799133301,-0.191662311553955,0.047599069774151,0.165520116686821,0.404901981353760,-0.081034645438194,0.013892547227442,-0.061353743076324,-0.055338378995657) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.048115395009518,0.113897293806076,0.047955375164747,-0.003879900788888,0.103379122912884,-0.014123925007880,0.027967790141702,-0.096351377665997,0.315216869115829,0.012538037262857,-0.080115422606468,0.109351173043251,-0.169587552547455,0.025373769924045,0.101495429873466,0.056816998869181) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.061723478138447,-0.004106756765395,-0.011675957590342,0.024953536689281,-0.044231109321117,-0.040491998195648,0.032394662499428,0.035928573459387,-0.076797120273113,0.021554579958320,0.017276206985116,-0.007990099489689,-0.042394299060106,0.027222456410527,0.059249989688396,-0.006000586785376) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.124663919210434,0.017524965107441,0.070306785404682,0.086834087967873,-0.009265737608075,0.003290501190349,-0.057925269007683,-0.207788646221161,0.013113175518811,0.041159674525261,0.050611853599548,0.109067633748055,0.112640529870987,-0.012786330655217,-0.021226797252893,0.001095728715882) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.022884823381901,0.113694608211517,0.038214493542910,0.200631186366081,-0.215020820498466,-0.052813209593296,0.143709316849709,0.008413589559495,0.156476587057114,0.060782000422478,-0.063790678977966,-0.046106502413750,-0.045902181416750,-0.003819660982117,0.017231285572052,0.004541097674519) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.000144809615449,-0.038185503333807,-0.039939370006323,-0.034025516360998,0.070817269384861,-0.046371035277843,-0.023607153445482,-0.101720377802849,0.020614864304662,-0.009883929975331,0.029413692653179,-0.026520445942879,-0.015856562182307,0.031019464135170,0.038775324821472,-0.018100677058101) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.020678212866187,-0.097540348768234,-0.064794197678566,0.083168849349022,0.012292783707380,-0.021144894883037,0.027719037607312,0.003076731460169,0.020062388852239,-0.029779510572553,-0.002222690498456,0.047373436391354,-0.036516536027193,0.003540093079209,0.049607925117016,-0.103657998144627) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.000163715798408,-0.007892904803157,0.075771458446980,0.034000728279352,0.082104757428169,-0.039716657251120,0.000585736415815,-0.064990811049938,0.013863356783986,-0.078692510724068,-0.057899240404367,-0.087112106382847,-0.020751785486937,0.045907456427813,0.030310040339828,0.032170172780752) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.023615030571818,-0.052736226469278,0.100367933511734,0.159971699118614,0.004955509677529,-0.037611238658428,-0.016065733507276,0.075981900095940,-0.105002261698246,0.010788810439408,0.055204238742590,0.121596440672874,0.011632323265076,-0.005800576880574,-0.055943440645933,0.007744760718197) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.148856341838837,-0.067195370793343,-0.153065621852875,-0.194355592131615,0.091711811721325,-0.016583634540439,-0.004701744299382,0.057043183594942,0.061261769384146,-0.008933635428548,0.007913036271930,0.111906193196774,-0.117577224969864,-0.001585233607329,0.030547305941582,0.059015724807978) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.083484359085560,-0.032045278698206,0.094953551888466,0.117878846824169,0.072024285793304,-0.047485586255789,-0.078803122043610,-0.202058002352715,0.150798887014389,-0.052285019308329,-0.090299233794212,-0.001777325407602,0.038759075105190,0.060486245900393,0.152588665485382,0.126288130879402) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.075519949197769,-0.054362297058105,0.012052974663675,-0.125296145677567,0.028586788102984,-0.015988865867257,0.023980544880033,0.020885586738586,0.033487640321255,0.002355198375881,-0.019347585737705,-0.057639423757792,0.020884100347757,0.029691351577640,0.065892733633518,0.025469077751040) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.132466956973076,-0.033462859690189,0.082854785025120,0.180549979209900,-0.004491140600294,0.009351999498904,-0.034455418586731,-0.046846449375153,-0.016640527173877,0.002700233133510,0.072303511202335,-0.091389298439026,-0.022932583466172,0.020490864291787,0.011547235772014,-0.089266501367092) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.025360001251101,-0.026858801022172,-0.045796755701303,-0.052168801426888,-0.064711473882198,-0.039271082729101,-0.063542544841766,-0.082803107798100,-0.025449294596910,-0.038568262010813,-0.037066336721182,-0.029633795842528,-0.063074342906475,0.076041951775551,0.029729343950748,-0.149593025445938) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.058464255183935,0.004968097899109,-0.066975392401218,-0.009255002252758,-0.020049538463354,0.003052710089833,-0.036623459309340,-0.029596757143736,-0.023264110088348,0.000679055752698,0.047343224287033,0.015051396563649,-0.024036267772317,-0.044318489730358,0.122623994946480,0.114606201648712) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.043651964515448,0.006712039001286,0.056116927415133,0.055902265012264,-0.059395812451839,-0.044071517884731,-0.089973032474518,-0.105493225157261,-0.033971641212702,0.006679412908852,0.010531190782785,0.047251839190722,0.027868753299117,-0.038168799132109,-0.152938470244408,-0.274388462305069) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.033567480742931,0.006677209865302,0.015241467393935,-0.151312455534935,-0.077337607741356,-0.003159379120916,0.064100436866283,0.061409492045641,-0.041619520634413,0.032722607254982,0.006177325733006,0.005605944897979,-0.163823306560516,-0.059344243258238,-0.007966594770551,0.097699739038944) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.004717756994069,-0.047375883907080,0.020595874637365,0.027390865609050,0.006307890173048,-0.049045417457819,0.121329739689827,0.096707805991173,0.000463258358650,-0.027461934834719,-0.031555052846670,0.003368100849912,-0.009824177250266,0.014702695421875,-0.017432771623135,-0.059752274304628) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.016620516777039,0.016338739544153,-0.003698147600517,-0.152051985263824,0.063061572611332,-0.007537377532572,-0.208946272730827,-0.297763913869858,-0.006804956123233,-0.005790114402771,0.001574664493091,-0.109610132873058,-0.123208969831467,-0.033269092440605,0.106983929872513,0.344161659479141) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.084792397916317,-0.003632299602032,0.029489811509848,0.167432337999344,-0.309792101383209,-0.045823261141777,0.167022794485092,0.104851186275482,-0.106779292225838,0.029460119083524,0.085650563240051,0.103208884596825,0.268695563077927,-0.060888707637787,-0.097738921642303,-0.155097141861916) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.041367340832949,-0.067195855081081,-0.026597553864121,0.020351236686110,0.010451612994075,-0.067455969750881,0.005360963288695,-0.001747465110384,-0.035615649074316,-0.047363113611937,-0.008543876931071,0.014783704653382,0.073396041989326,0.001721469336189,-0.030311228707433,0.021365517750382) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.027263559401035,-0.024251373484731,-0.020452905446291,0.073880583047867,0.055846881121397,-0.046271067112684,-0.041789423674345,0.187339991331100,-0.004609010647982,-0.027767004445195,-0.021575493738055,0.023076528683305,0.024851216003299,-0.000087053631432,-0.022286312654614,-0.000328571069986) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.020333288237453,0.020155139267445,0.036763194948435,-0.167994603514671,0.072958588600159,-0.103549391031265,-0.057657461613417,-0.040150374174118,0.034245513379574,0.012456238269806,0.081168964505196,-0.053918056190014,-0.038762535899878,-0.043777242302895,0.069104962050915,0.094006367027760) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.016721200197935,-0.060681518167257,0.051042668521404,-0.055267788469791,0.061341885477304,-0.027094732969999,0.000885969202500,-0.015092927962542,0.036487855017185,-0.041464153677225,-0.016026783734560,0.006707139778882,0.131968989968300,-0.012245028279722,-0.060023561120033,0.051264196634293) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.059343826025724,-0.016045274212956,-0.025331575423479,-0.161781743168831,0.044595438987017,-0.004425569903105,0.066889666020870,0.096986286342144,-0.058251366019249,-0.002508436795324,-0.012992432340980,-0.233489736914635,0.062138050794601,-0.017104582861066,0.102272905409336,0.114152744412422) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.082955248653889,-0.007345657795668,0.079142682254314,0.104114912450314,0.104739345610142,-0.024921413511038,0.035071790218353,-0.015941204503179,-0.126545503735542,0.051624599844217,0.062105298042297,-0.012252433225513,0.010419637896121,0.076677381992340,0.150623187422752,0.095169588923454) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.021282915025949,-0.071501001715660,0.042798858135939,-0.010746295563877,0.056655872613192,-0.029572509229183,0.090040117502213,0.144663646817207,-0.093587383627892,-0.055495403707027,0.051525078713894,0.061646979302168,0.017786212265491,-0.040594749152660,-0.031348966062069,0.069223694503307) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.069730542600155,-0.036966159939766,-0.089359648525715,-0.179827183485031,0.189617469906807,-0.011584814637899,-0.107767291367054,-0.310283541679382,0.045655932277441,-0.019753465428948,-0.063522107899189,-0.384583920240402,0.018913086503744,-0.013590591028333,-0.278743952512741,-0.483404576778412) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.262519031763077,-0.048063728958368,0.013430303893983,-0.312062829732895,-0.181972980499268,-0.032240524888039,0.022384556010365,-0.015440396033227,-0.306740820407867,0.031580187380314,0.105143807828426,-0.010239462368190,-0.344770222902298,0.035628665238619,0.232674643397331,0.132649555802345) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.041985485702753,-0.003944213502109,0.056330993771553,0.073284201323986,-0.020994268357754,-0.026247274130583,-0.028596701100469,-0.075948722660542,0.071513608098030,-0.027124632149935,-0.037910073995590,-0.140245005488396,0.076402947306633,-0.036597374826670,0.012169553898275,0.036405589431524) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.056079395115376,0.009570564143360,-0.070075072348118,-0.197600603103638,-0.017339795827866,-0.025551684200764,0.058984663337469,-0.038957685232162,-0.088228501379490,-0.034105546772480,0.009781319648027,-0.015315315686166,0.098152533173561,-0.038929622620344,-0.060158312320709,0.135768026113510) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.150113284587860,-0.076475411653519,0.068490728735924,0.030887696892023,-0.028538255020976,-0.027799636125565,0.000814329774585,-0.054414518177509,-0.107712700963020,0.008029878139496,0.070555649697781,-0.105600327253342,0.100733667612076,-0.041104923933744,-0.072348006069660,0.047292284667492) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.006120903883129,-0.037704531103373,-0.011466308496892,-0.007030432578176,-0.033053033053875,0.004990107845515,-0.085590846836567,-0.086547657847404,0.093612298369408,-0.025084091350436,-0.014393732883036,-0.048280365765095,0.010566788725555,-0.017817731946707,0.055728603154421,-0.109155178070068) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.025419378653169,0.061904065310955,-0.027463939040899,-0.067375890910625,-0.005146799143404,-0.032058507204056,0.007203365676105,0.172768518328667,-0.057046782225370,-0.054717082530260,0.018257271498442,0.076160162687302,-0.073491930961609,0.006587225012481,0.054456669837236,0.111766971647739) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.052708599716425,-0.022785220295191,-0.011436059139669,0.101161964237690,0.032482929527760,0.008895129896700,0.038723971694708,-0.057417586445808,-0.013405210338533,-0.026130691170692,0.061844777315855,-0.011573472991586,0.029177552089095,0.013648631982505,0.009055824019015,0.076476737856865) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.018428059294820,-0.022166086360812,-0.035502985119820,0.015560778789222,-0.004743662197143,-0.000557632360142,0.089491911232471,0.172407999634743,-0.033179212361574,-0.021658115088940,0.102067142724991,0.210275977849960,-0.004716788418591,-0.025960220023990,0.027964506298304,0.198690965771675) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.004075176082551,0.022288741543889,0.067296169698238,0.171902954578400,0.196785911917686,-0.028734803199768,-0.182103455066681,-0.382669597864151,0.161458253860474,-0.037797749042511,-0.084583573043346,-0.172517284750938,0.021669579669833,-0.034358546137810,0.000287270988338,-0.004204490687698) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.136935889720917,0.063385918736458,-0.069921217858791,-0.141145810484886,-0.296629697084427,-0.013625764288008,0.108071461319923,0.042187619954348,-0.042514868080616,-0.039152264595032,0.044425945729017,0.011965543963015,-0.010416290722787,0.007465773727745,0.039784822613001,0.067815952003002) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.043511047959328,-0.043602377176285,-0.081981614232063,-0.011554519645870,0.044521048665047,-0.022394271567464,0.011987771838903,-0.042052127420902,0.017386410385370,-0.032919898629189,0.046396687626839,-0.051059767603874,0.000320050225127,-0.023250216618180,-0.035377133637667,0.034642446786165) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.033199343830347,0.017627729102969,0.014099084772170,-0.228567004203796,-0.023614075034857,-0.025106575340033,0.036463472992182,0.103183090686798,-0.158967778086662,-0.046093445271254,0.076039999723434,0.078320413827896,-0.049048095941544,-0.000122619254398,-0.016976935788989,-0.079424694180489) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.106014847755432,0.116260826587677,0.177699863910675,0.048446528613567,0.004595315083861,-0.031174009665847,-0.050383515655994,0.038781460374594,0.022018518298864,-0.118723392486572,-0.058928478509188,-0.033256322145462,-0.070909090340137,0.022155437618494,0.060795582830906,-0.031528364866972) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.007907059974968,-0.020879629999399,-0.085055790841579,0.894730031490326) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL4
//!DESC [AiUpscale_HQ_3x_Photo] mapping 1_4

vec4 hook()
{
vec4 res = vec4(-0.212743148207664,0.031019233167171,-0.136029645800591,-0.039459835737944);
res += mat4(-0.166250661015511,-0.077243566513062,-0.092286869883537,0.000142192613566,0.107297852635384,0.059123069047928,-0.042044069617987,-0.000020588204279,-0.042149353772402,0.005106973927468,-0.018890205770731,-0.000001425817231,0.082457982003689,0.062879659235477,-0.144130334258080,-0.000016058786059) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.179687574505806,-0.213344797492027,-0.065274611115456,0.000243328948272,-0.108755111694336,0.046249903738499,-0.100626751780510,-0.000020902836695,-0.156347587704659,0.005812510382384,0.029551470652223,0.000000404737506,-0.102006919682026,0.106696344912052,-0.016544677317142,-0.000011307713066) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.033260267227888,0.132040232419968,0.054856587201357,0.000812721613329,-0.132293567061424,0.055691950023174,-0.049908857792616,-0.000017813812519,0.028302455320954,0.143436267971992,0.015116956084967,0.000056883360230,0.021198539063334,0.163411468267441,0.135486125946045,-0.000005820665592) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.029431995004416,-0.033307235687971,0.104477882385254,0.000076985619671,-0.028020907193422,-0.024528969079256,0.161379739642143,-0.000016619649614,0.087688691914082,-0.098090983927250,0.055648390203714,-0.000000116783788,0.033221244812012,-0.011572179384530,0.144921556115150,-0.000016583702745) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.022916281595826,-0.256113022565842,-0.046650353819132,0.000218327681068,-0.000102308738860,-0.006690661422908,0.171634674072266,-0.000008978889127,-0.051004227250814,-0.131855130195618,0.021872192621231,0.000008132261428,0.060109816491604,-0.041263800114393,-0.067738503217697,-0.000011965799786) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.032635327428579,-0.036066252738237,-0.091612584888935,0.000827292446047,0.010145889595151,0.020703954622149,0.140927135944366,-0.000008590704056,0.037570271641016,-0.055744003504515,-0.080878131091595,0.000068321423896,-0.040703184902668,0.061748683452606,-0.144286453723907,-0.000008670655006) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.059608731418848,-0.023148767650127,-0.105440706014633,0.000160819763551,0.054099787026644,-0.062019031494856,-0.035077542066574,-0.000015080186131,0.002212989144027,-0.045366846024990,-0.056946415454149,-0.000019711158529,0.037878844887018,-0.013435982167721,-0.004005494993180,-0.000015586503650) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.060562904924154,-0.162847816944122,-0.021994661539793,0.000345298147295,-0.070498540997505,-0.013196348212659,-0.074719391763210,-0.000024191394914,-0.065025553107262,-0.108529098331928,-0.014180607162416,0.000003746897619,-0.001343330950476,0.027929905802011,0.078753970563412,-0.000018306182028) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.048772815614939,0.040721058845520,0.060339141637087,0.001055694534443,0.080111138522625,0.021991187706590,-0.117420651018620,-0.000027062425943,-0.016466736793518,-0.016885451972485,-0.000840364722535,0.000085835810751,-0.012963449582458,0.042557999491692,-0.015672884881496,-0.000014046033357) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.079746313393116,-0.124981932342052,0.007266964763403,-0.000014716844817,0.042244400829077,-0.037785064429045,0.129909336566925,-0.000000274784952,-0.105597883462906,-0.154621928930283,0.035663712769747,0.000093323978945,-0.025942157953978,-0.057845115661621,-0.030100706964731,0.000003548756013) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.014389969408512,-0.104678831994534,0.005028925370425,-0.000022875750801,0.012066073715687,0.052114158868790,0.093967318534851,0.000000643719886,0.156131893396378,-0.091625757515430,0.054858028888702,0.000142280507134,-0.051594082266092,0.032848976552486,0.098421573638916,0.000003825802196) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.023258663713932,-0.068915314972401,0.018228761851788,0.000075428906712,-0.033358562737703,-0.016739644110203,-0.076131209731102,-0.000001104052558,0.031160671263933,-0.184407517313957,0.062981344759464,0.000208838726394,0.059000220149755,0.064264081418514,0.153341010212898,-0.000000193086123) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.022736471146345,0.100761495530605,-0.005285890307277,-0.000057623990870,-0.059339094907045,-0.058637570589781,-0.089564368128777,0.000001360901592,-0.152966573834419,0.013592232950032,-0.022624900564551,0.000183222102351,0.014527056366205,0.009975325316191,0.010470832698047,0.000001151376864) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.030219610780478,0.100071750581264,-0.032121330499649,0.000015626044842,-0.007391371298581,-0.020160984247923,0.003395490348339,0.000002068599542,0.087316684424877,0.070150859653950,-0.071065455675125,0.000099928438431,-0.125276327133179,-0.077611796557903,-0.104893878102303,0.000003013439482) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.022517710924149,0.124217741191387,-0.048546385020018,0.000125758917420,0.041966427117586,0.014736284501851,0.034816395491362,0.000001529964720,-0.024335948750377,0.021847566589713,0.020800953730941,0.000097893491329,0.060315016657114,0.035287559032440,-0.140227481722832,-0.000000535810443) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.034517571330070,0.037079978734255,-0.016240086406469,-0.000085146435595,0.091833144426346,-0.044972479343414,0.057129658758640,0.000002598807669,-0.037764970213175,0.005713491234928,0.063252650201321,0.000124970509205,-0.064806997776031,-0.045464299619198,0.022787800058722,-0.000005262510513) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.063022747635841,0.064878083765507,-0.014244065620005,0.000021958978323,-0.019044246524572,-0.028023708611727,0.025751922279596,0.000003535319365,-0.021109098568559,0.057298578321934,0.066289581358433,0.000145022990182,0.028231181204319,-0.016433317214251,0.127327620983124,0.000004201397587) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.011098338291049,0.054518330842257,0.021214907988906,0.000112346482638,-0.002220181049779,-0.072376459836960,-0.066725887358189,0.000002899461379,-0.097448609769344,-0.072534509003162,-0.001833349815570,0.000119418931718,-0.094180263578892,-0.031558353453875,0.018298681825399,0.000001908855211) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.054503612220287,0.109097324311733,0.068261280655861,-0.000020606679755,-0.009133021347225,0.047934379428625,-0.089569367468357,0.000028127506084,0.080014131963253,-0.054366685450077,0.076791606843472,0.000015934547264,-0.013667455874383,0.031824003905058,0.113985180854797,-0.000001482533094) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.001556822448038,-0.030193367972970,-0.160259976983070,-0.000034428121580,-0.011557852849364,0.121522128582001,0.005628752522171,-0.000057039811509,0.103863194584846,-0.002351405564696,0.023065024986863,0.000007159622328,0.105395063757896,0.021731499582529,0.160489410161972,-0.000001434553042) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.006108283065259,-0.071483030915260,-0.014566970989108,-0.000015676845578,-0.094367273151875,0.150090739130974,0.018103564158082,-0.000092452763056,0.031976163387299,-0.168786644935608,0.018691759556532,-0.000011939803699,0.124576136469841,-0.118972666561604,-0.026669528335333,0.000010557524547) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.076359324157238,0.012427569366992,-0.025459222495556,-0.000027384152418,0.038262464106083,-0.060239549726248,-0.018549127504230,0.000019494234948,0.016411293298006,0.041983127593994,-0.161721810698509,0.000012390534721,-0.043712094426155,-0.088628046214581,-0.134174913167953,-0.000010630872566) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.001096736756153,0.069243393838406,0.142359748482704,-0.000020498642698,0.019425958395004,-0.050198413431644,-0.002566958079115,-0.000126351937070,0.047146990895271,0.137975126504898,-0.004465543664992,0.000006958885933,-0.032263919711113,-0.050843708217144,-0.125016644597054,-0.000009656223483) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.001711848657578,-0.044861022382975,0.000432218745118,-0.000005826666438,0.000381714635296,-0.009505514986813,-0.034002963453531,-0.000132232686155,0.007568270433694,-0.024683957919478,0.079029381275177,-0.000005086028978,0.057726059108973,-0.010293366387486,-0.028296561911702,-0.000006221462627) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.007229305338115,-0.032556761056185,-0.063347697257996,-0.000017859683794,0.058185931295156,-0.001733266049996,-0.034140184521675,0.000018470771465,-0.003055895678699,0.026759544387460,0.072701342403889,0.000013641726582,0.069642208516598,0.058084055781364,0.100066743791103,-0.000021007086616) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.000458010181319,-0.003774051787332,-0.070440024137497,-0.000021239400667,-0.006183859892190,-0.036502063274384,0.019678400829434,-0.000119211246783,0.041216414421797,0.060175005346537,-0.067152775824070,0.000008311610145,-0.022244160994887,0.034141447395086,0.040964026004076,0.000000020380844) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.036548841744661,-0.027806771919131,0.041164640337229,-0.000004660649211,0.006101571954787,0.020626785233617,0.020812120288610,-0.000134517322294,-0.044793333858252,-0.059539638459682,-0.103412061929703,0.000000158883878,-0.049086727201939,-0.092920176684856,-0.037357419729233,0.000020766849048) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.036370553076267,-0.052970647811890,-0.097995050251484,0.000000304818315,0.045983463525772,0.023754805326462,-0.127054169774055,-0.000446180405561,0.036832571029663,-0.032060470432043,-0.077140167355537,-0.000007465355793,0.137676656246185,0.155377477407455,0.095439024269581,-0.000006056968232) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.018197452649474,0.022815352305770,0.070877522230148,0.000002259659368,-0.114131376147270,-0.036144338548183,-0.016636472195387,-0.000057807275880,-0.023965386673808,-0.049495134502649,-0.025119133293629,0.000006653641776,0.185478627681732,0.095586486160755,-0.007169984281063,-0.000066429784056) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.046119682490826,0.027269288897514,0.115845993161201,0.000002528260893,0.014712747186422,-0.058565061539412,0.129177793860435,-0.000172493659193,-0.016564756631851,-0.095811031758785,0.020693732425570,0.000034776967368,-0.003646065248176,0.005630197934806,-0.136427477002144,-0.000112756642920) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.035206228494644,-0.078350216150284,0.057434525340796,0.000002031068334,0.148547574877739,0.115035153925419,0.038426384329796,-0.000255138205830,0.033804707229137,-0.013686622492969,0.042688883841038,-0.000005462344689,-0.077199868857861,0.025114614516497,-0.154242187738419,-0.000078272430983) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.004035981371999,-0.025248758494854,-0.059827677905560,0.000001914479071,0.008054181933403,0.114906392991543,-0.030679836869240,-0.000003996035502,-0.008425931446254,0.034297395497561,-0.019533995538950,0.000007089489372,0.081043012440205,0.042607199400663,-0.002075459342450,-0.000153688408318) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.015630917623639,0.010531445033848,-0.114333137869835,0.000002208510523,-0.018786994740367,0.055114615708590,-0.203085556626320,-0.000017356833268,-0.006477927789092,-0.006720154080540,-0.070129357278347,0.000030211884223,-0.013178521767259,0.103047020733356,0.138559028506279,-0.000161228075740) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.023622510954738,-0.023264283314347,-0.044391799718142,0.000002203854365,0.042490817606449,-0.073945686221123,-0.130310893058777,-0.000159814939252,0.023030735552311,-0.019925208762288,-0.004289611242712,-0.000000068032826,-0.010368978604674,-0.011136527173221,0.138355582952499,-0.000057074241340) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.038515884429216,0.000892697949894,0.103686757385731,0.000002184875029,0.086659304797649,0.060018286108971,0.071475803852081,-0.000009945745660,-0.024344870820642,0.048032835125923,0.033816549926996,0.000007157614618,0.031595952808857,0.043165523558855,-0.014423699118197,-0.000161615913385) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.031490217894316,-0.019019998610020,0.035181451588869,0.000002867574267,0.071777969598770,-0.014283976517618,0.196047604084015,-0.000039673126594,0.038230244070292,-0.008499259129167,-0.009661559015512,0.000027080639484,0.048490684479475,0.012761046178639,-0.102386549115181,-0.000169668623130) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.040820717811584,0.070676788687706,-0.122118845582008,0.000030828039598,0.039371866732836,-0.094058111310005,-0.140725791454315,0.000019955772586,0.044361371546984,0.139950677752495,0.054275099188089,-0.000027401161788,-0.038764692842960,0.023741265758872,-0.133348211646080,-0.000337243895046) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.135924413800240,0.096313484013081,0.001189676229842,-0.000000809579149,-0.125431075692177,0.049205638468266,-0.080502219498158,-0.000098963384517,-0.216392993927002,0.052841946482658,0.008450011722744,-0.000059898444306,-0.228514835238457,0.043560791760683,0.098388686776161,-0.000134314163006) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.058189552277327,0.123978056013584,0.024861266836524,-0.000200149705051,-0.028655610978603,-0.009948233142495,0.068471349775791,-0.000027860138289,-0.072774551808834,0.252069234848022,0.038403898477554,0.000159426388564,-0.025320293381810,0.158924862742424,0.277970522642136,-0.000056140888773) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.127400740981102,-0.111768960952759,0.035908043384552,-0.000022228050511,0.133902341127396,0.007661662530154,0.024112135171890,-0.000001605033958,0.021716035902500,-0.123630329966545,0.047190692275763,-0.000068897999881,0.186664804816246,0.040519881993532,-0.036855164915323,-0.000437318551121) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.032958604395390,-0.113288506865501,0.023491227999330,-0.000044300275476,-0.051257915794849,0.050666261464357,0.082063816487789,-0.000044008498662,-0.053100373595953,-0.229733526706696,0.006186554208398,-0.000079726327385,-0.088097207248211,-0.028143249452114,-0.153090432286263,-0.000120325210446) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.022994810715318,-0.096938163042068,-0.109466053545475,-0.000176423796802,0.000899012899026,-0.091172039508820,-0.042738102376461,-0.000037251949834,0.012570128776133,-0.002348039066419,-0.066998943686485,0.000159748917213,-0.019954288378358,0.076691351830959,-0.284440249204636,-0.000132109125843) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.062965996563435,-0.081288672983646,-0.056898646056652,0.000023675560442,0.011221976019442,-0.008323318324983,-0.069572314620018,-0.000003463277153,0.029861683025956,-0.036357522010803,0.021937927231193,-0.000021453583031,0.103672333061695,0.008825641125441,-0.026376495137811,0.000037302357669) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.059218171983957,-0.064843125641346,0.036931604146957,-0.000059890749981,0.045583061873913,0.012463754042983,-0.039200749248266,-0.000017644426407,-0.016045991331339,-0.156413018703461,-0.004219532012939,-0.000100247460068,0.067102283239365,0.039837043732405,0.162977442145348,0.000086027670477) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.029798926785588,0.010816118679941,0.076482892036438,-0.000145405851072,0.010735883377492,0.009338913485408,0.014813148416579,-0.000034336742829,0.036781813949347,0.028109930455685,-0.037465386092663,0.000239454078837,0.015545163303614,0.081118278205395,0.212774485349655,-0.000016572876120) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.008821367286146,-0.056828841567039,0.037485674023628,-0.000003444694585,0.072068974375725,0.024232389405370,-0.147452607750893,-0.000013439525901,-0.006178726907820,-0.028408629819751,-0.022201299667358,-0.000007342777735,-0.040324717760086,-0.021705940365791,-0.039225336164236,-0.000002332668146) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.025793906301260,-0.006381001789123,-0.041909325867891,-0.000004613080819,-0.108100779354572,0.049468964338303,-0.164506301283836,-0.000005982325092,-0.055172972381115,-0.047934439033270,-0.052140075713396,-0.000070657471952,-0.037545472383499,-0.022954806685448,0.012180000543594,-0.000000523448932) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.101694419980049,-0.015850177034736,-0.023306377232075,-0.000010323864444,0.054895885288715,0.076607875525951,0.016724362969398,-0.000033217758755,-0.019006619229913,-0.195944353938103,0.117121696472168,-0.000086897613073,-0.029866205528378,0.003716846462339,-0.012470888905227,-0.000002054041715) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.031454022973776,-0.021719101816416,-0.000907867681235,-0.000000228378696,0.155652925372124,0.048157796263695,0.117315389215946,-0.000014924475181,0.049212850630283,0.143931850790977,0.079304523766041,-0.000027884871088,0.043981034308672,-0.108217090368271,-0.104422286152840,0.000003561930498) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.063328988850117,-0.005145099014044,0.060278952121735,-0.000001244866894,-0.057658605277538,0.039178561419249,0.098200596868992,-0.000000895976825,-0.001662275870331,0.217863336205482,0.068818382918835,-0.000114683622087,-0.042868968099356,-0.066252142190933,0.029420856386423,0.000003909031875) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.037077203392982,-0.030486378818750,0.003708103206009,-0.000003963052677,0.020873202010989,0.009463670663536,-0.108082942664623,-0.000003360509254,-0.069146357476711,-0.048240080475807,-0.071691460907459,-0.000152796987095,0.003023325698450,-0.059698980301619,-0.005885605234653,0.000000718463127) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.004659329075366,0.012086811475456,0.082056604325771,0.000003520932978,0.070173278450966,-0.085045658051968,-0.122003324329853,-0.000033782926039,0.019356492906809,0.074975654482841,-0.062760852277279,0.000004251060545,-0.005592364352196,-0.054083935916424,0.024461759254336,0.000002211278797) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.033035423606634,-0.022696163505316,-0.034863375127316,0.000002563394673,0.089453689754009,-0.046648170799017,-0.065620057284832,-0.000012669333955,0.051494043320417,0.119406804442406,-0.053583111613989,-0.000079985271441,-0.020724220201373,-0.068584762513638,-0.025475276634097,0.000003135956831) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.023851230740547,-0.013009322807193,-0.001889117411338,0.000000836903041,0.049928296357393,0.044830843806267,0.112522654235363,-0.000013393329937,0.062858738005161,-0.018862888216972,0.042957901954651,-0.000107829022454,-0.027805391699076,-0.032135415822268,0.036548081785440,0.000002323102990) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.007106970064342,0.017350774258375,-0.039738632738590,0.000062594117480) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL5
//!DESC [AiUpscale_HQ_3x_Photo] mapping 1_5

vec4 hook()
{
vec4 res = vec4(-0.262949079275131,-0.561683058738708,-0.007810595445335,-0.417001277208328);
res += mat4(-0.105173818767071,-0.018572425469756,0.056878689676523,-0.171023488044739,0.065226770937443,0.009550673887134,-0.001316884998232,0.092581108212471,0.052150662988424,-0.011575656943023,-0.007784774992615,0.085882931947708,-0.031216360628605,-0.004388280678540,-0.054690644145012,0.101515457034111) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.122661523520947,-0.013804384507239,-0.104567483067513,-0.098611623048782,0.023546472191811,0.088741086423397,0.042973905801773,0.015192003920674,-0.095682322978973,-0.011604622006416,-0.033040296286345,0.065676197409630,0.038286797702312,-0.050463624298573,0.006915325298905,0.022965654730797) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.136388510465622,-0.062036819756031,-0.091970354318619,-0.009429320693016,-0.167831540107727,0.063736341893673,-0.041287876665592,0.065786235034466,0.024475596845150,0.060365319252014,0.131741836667061,-0.027504026889801,-0.060255486518145,-0.026617754250765,-0.063055001199245,0.064280897378922) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.041842687875032,-0.129058018326759,0.099217042326927,-0.343198299407959,0.039780013263226,-0.017583852633834,0.007828982546926,0.015941994264722,-0.079178787767887,-0.013926172628999,0.020963849499822,-0.036480266600847,0.036926738917828,-0.110853143036366,-0.005827014334500,0.004258836619556) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.025639586150646,-0.036519456654787,-0.042219396680593,-0.429842859506607,0.078736968338490,-0.061845347285271,0.093696087598801,-0.105592824518681,-0.065802901983261,0.059264060109854,0.033766359090805,-0.189170956611633,0.119320422410965,-0.034475758671761,0.027702733874321,-0.154493957757950) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.075707435607910,-0.074382588267326,0.016690252348781,-0.174673855304718,0.074389323592186,0.043664928525686,0.046036548912525,-0.159981146454811,-0.206360667943954,0.047625944018364,0.088622458279133,0.078885816037655,0.057319711893797,0.046266362071037,-0.065854512155056,0.055791418999434) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.007429909892380,-0.242302581667900,-0.014249048195779,-0.214917287230492,-0.064716614782810,-0.076682373881340,-0.026320332661271,0.007795595098287,-0.034977339208126,-0.030289586633444,-0.066011488437653,-0.005146171431988,0.015307162888348,-0.005801386199892,0.011539832688868,-0.014342979528010) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.009471255354583,-0.203026652336121,-0.221522688865662,-0.181974709033966,0.028556872159243,-0.038666676729918,0.093318141996861,-0.015760634094477,-0.017723159864545,0.019519438967109,-0.102175243198872,-0.095257274806499,-0.035801917314529,0.019583344459534,0.033479001373053,0.086842179298401) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.025453573092818,-0.121123433113098,-0.066717691719532,-0.123406559228897,-0.013252732343972,-0.019469952210784,0.122250035405159,0.112948507070541,-0.097249411046505,0.047391451895237,0.031825464218855,0.054443120956421,0.080346994102001,0.021683523431420,0.071594305336475,0.083163119852543) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.011503120884299,0.070327632129192,0.009954990819097,0.096870742738247,0.012220433913171,-0.036064576357603,-0.009556298144162,0.035310495644808,-0.099226102232933,-0.004148642998189,-0.039133481681347,-0.022558810189366,-0.012582285329700,0.053085841238499,-0.038230426609516,0.042124375700951) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.026331171393394,0.190328046679497,-0.034966513514519,0.072724215686321,0.016614114865661,-0.021527621895075,0.027960542589426,-0.106627687811852,0.085210032761097,-0.058959048241377,-0.063729576766491,0.050169322639704,-0.161855116486549,0.022068543359637,-0.037718117237091,0.094189241528511) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.051468070596457,0.154624283313751,0.071501851081848,0.135412827134132,-0.008249838836491,0.039681248366833,0.015009936876595,0.010831466875970,-0.015143649652600,-0.054431352764368,-0.040089581161737,-0.040835998952389,0.039044093340635,-0.039627797901630,0.046212196350098,0.093774802982807) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.130582109093666,0.104351386427879,0.034188102930784,0.031336620450020,0.009184408001602,0.036146625876427,0.024170095100999,-0.039432507008314,0.059429585933685,0.044299483299255,0.012790207751095,-0.044058006256819,0.002231372520328,-0.091471441090107,0.041543643921614,-0.042994316667318) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.040111143141985,0.194802895188332,-0.077838905155659,0.186549007892609,-0.150900572538376,-0.018394308164716,-0.025467449799180,0.059655629098415,-0.107806906104088,0.060400485992432,-0.149509012699127,0.342328101396561,0.016535583883524,-0.082075625658035,0.091738477349281,-0.146768793463707) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.101684272289276,0.129282802343369,0.139971926808357,0.118004396557808,0.044015679508448,0.004505237098783,-0.008239734917879,-0.087054379284382,0.122737757861614,-0.023630635812879,0.007604742422700,0.032970327883959,-0.073690682649612,-0.062623046338558,0.015901321545243,0.029314823448658) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.013763262890279,0.142949163913727,-0.045467454940081,0.056021317839622,-0.000824053422548,-0.024437939748168,-0.053402159363031,0.015465252101421,-0.012012858875096,0.214787170290947,0.026283090934157,0.000816633168142,-0.070490181446075,-0.127542287111282,-0.047542847692966,-0.038728188723326) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.033872533589602,0.182448714971542,-0.009445449337363,0.117629654705524,0.039928652346134,0.010717594064772,-0.003915701992810,-0.048853009939194,-0.083583712577820,0.141372531652451,-0.030977636575699,0.077884733676910,0.018296934664249,0.041932158172131,-0.038632061332464,-0.012001647613943) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.051623366773129,0.141254231333733,0.145083248615265,0.139658078551292,-0.056125916540623,-0.032459061592817,0.008923734538257,0.053520034998655,0.020846992731094,-0.043765913695097,-0.105717234313488,-0.089101813733578,-0.153288453817368,0.030644200742245,0.148990333080292,0.123671077191830) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.025957774370909,-0.075721383094788,0.023841543123126,-0.108061157166958,0.053475882858038,0.069936417043209,-0.002992913592607,0.041959132999182,-0.010837691836059,-0.026784311980009,-0.016144964843988,-0.052001461386681,-0.115253098309040,-0.057838380336761,-0.004551840014756,-0.031548641622066) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.066950798034668,0.014142492786050,0.019274311140180,-0.021965950727463,0.065938219428062,-0.091456465423107,0.054456301033497,0.041646372526884,-0.056708119809628,-0.015311433002353,0.028248216956854,0.017869286239147,-0.009922211989760,-0.094012603163719,-0.057504620403051,-0.088548161089420) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.040032889693975,0.031573716551065,0.045508198440075,-0.063711628317833,-0.027253666892648,-0.030003963038325,-0.062179390341043,-0.064609430730343,-0.022651981562376,-0.048001464456320,0.006507351994514,-0.013613994233310,0.117202602326870,0.018167383968830,0.087923392653465,-0.041667874902487) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.083749070763588,-0.064016960561275,-0.066457077860832,0.115909300744534,-0.019117316231132,0.060539674013853,0.017779173329473,0.031709324568510,-0.043546602129936,-0.013977751135826,0.015936901792884,0.087880685925484,-0.045928444713354,-0.036614771932364,-0.011937321163714,-0.127840861678123) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.126902788877487,-0.007497164886445,0.062503784894943,-0.104439839720726,-0.062752932310104,-0.110057935118675,0.089885435998440,-0.045224756002426,0.009462668560445,-0.053150411695242,0.074679300189018,0.063223995268345,-0.155687704682350,0.096031777560711,-0.119857996702194,0.093745119869709) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.169126898050308,0.044720053672791,0.086506165564060,0.084965027868748,0.021246764808893,-0.036372460424900,-0.059311121702194,-0.159418940544128,0.039554670453072,-0.019965287297964,-0.058687329292297,-0.022301120683551,-0.137500837445259,0.047605123370886,0.071027599275112,0.136722624301910) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.006258560810238,-0.044245190918446,0.105338215827942,-0.009009054861963,0.022154621779919,-0.031390573829412,0.104915149509907,0.049747202545404,-0.021946903318167,-0.030123338103294,0.016094995662570,-0.124503046274185,0.046381995081902,0.074946977198124,-0.066872842609882,-0.017311759293079) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.100719533860683,-0.018354985862970,0.007878407835960,0.043526597321033,0.031235929578543,-0.194628283381462,0.042791806161404,-0.016775593161583,-0.059815663844347,-0.062721200287342,0.040695261210203,-0.047739628702402,-0.002966769272462,0.178526908159256,-0.131085634231567,-0.039983619004488) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.000357323704520,0.057671669870615,0.048134136945009,-0.093697033822536,0.065854623913765,-0.110726840794086,-0.128224030137062,-0.074206754565239,0.001191999879666,-0.054930679500103,-0.090948022902012,-0.144718304276466,-0.021849138662219,0.089781209826469,-0.055481385439634,-0.077176824212074) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.051840610802174,0.103330552577972,-0.006629133131355,0.003073611762375,0.047440946102142,0.012807984836400,-0.015914296731353,-0.002355521311983,-0.026971070095897,-0.011098835617304,-0.008092278614640,-0.027839871123433,0.011248212307692,-0.141787424683571,-0.071000710129738,-0.058444067835808) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.030694682151079,-0.043251659721136,-0.019112505018711,0.025788811966777,-0.201106175780296,0.038120463490486,0.027171622961760,-0.018044680356979,-0.020619966089725,0.029426932334900,-0.057301275432110,-0.011453387327492,0.062283448874950,-0.067691430449486,0.037699557840824,-0.269042462110519) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.014719557017088,0.019628975540400,-0.024833986535668,-0.124691560864449,-0.088544212281704,-0.028762487694621,0.019743504002690,-0.024417823180556,-0.017590939998627,0.008602660149336,0.002567444695160,0.014342855662107,-0.045212026685476,-0.067256912589073,-0.085030347108841,-0.006878840737045) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.037683460861444,0.014231595210731,-0.042426105588675,0.004876655992121,0.093762531876564,-0.186775997281075,-0.075407996773720,0.006535807624459,-0.005420710891485,-0.011427510529757,-0.033090502023697,-0.016678452491760,0.084106221795082,-0.123406849801540,-0.031995397061110,0.055067785084248) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.024147164076567,0.028718747198582,0.038635745644569,-0.092929124832153,0.316567480564117,0.035142671316862,0.114202193915844,-0.286252230405807,0.028013641014695,0.045676976442337,-0.019447395578027,-0.045344285666943,-0.006187596358359,-0.161009728908539,-0.140790820121765,0.199239566922188) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.100393578410149,0.055242091417313,-0.015507713891566,0.018483137711883,-0.085497014224529,-0.016760349273682,0.003209966234863,0.172203451395035,-0.059130545705557,0.062889955937862,0.035913974046707,0.060768269002438,0.205950230360031,-0.024483051151037,-0.094477914273739,-0.147275105118752) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.046688441187143,0.030329592525959,-0.017072491347790,0.099427834153175,-0.038252778351307,-0.107497856020927,0.092748381197453,0.082372069358826,-0.031414344906807,0.032082419842482,-0.046961978077888,0.003703750437126,0.009498097933829,0.029011605307460,0.075531251728535,-0.033802330493927) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.053982179611921,-0.005595644470304,0.001044303062372,-0.024139693006873,-0.053495734930038,0.045149460434914,0.077212497591972,0.081584185361862,-0.053226556628942,0.096509709954262,-0.025832511484623,-0.032149925827980,0.000977659830824,-0.054401084780693,0.080853164196014,0.101437106728554) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.067138709127903,-0.026962855830789,-0.017843093723059,-0.047596450895071,-0.022881003096700,0.090058304369450,0.127980798482895,0.087770126760006,-0.038321897387505,0.055764738470316,0.057266537100077,-0.011398929171264,0.032125938683748,-0.017492221668363,0.046336613595486,0.019473806023598) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.010553954169154,-0.037870194762945,-0.038297865539789,0.051150154322386,0.074507683515549,0.156820476055145,0.034204542636871,0.044179450720549,0.043567676097155,-0.032119445502758,0.013253071345389,-0.010545709170401,0.088100701570511,0.194469943642616,0.029298285022378,0.134399756789207) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.104885712265968,-0.065802447497845,0.051358442753553,-0.082740016281605,-0.069884799420834,0.062823094427586,0.071921914815903,0.172978058457375,-0.068632535636425,-0.050455674529076,-0.025425735861063,-0.032933693379164,-0.144612506031990,0.065227031707764,0.020080054178834,0.230405166745186) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.102876365184784,-0.014829756692052,-0.091487027704716,0.093738794326782,-0.011626411229372,0.026920847594738,0.005256738513708,0.092309065163136,-0.026977997273207,-0.005446155555546,-0.014479758217931,-0.039680626243353,0.031530354171991,0.023515123873949,0.113137684762478,0.158159777522087) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.083652026951313,-0.020263753831387,-0.009857285767794,-0.008125397376716,-0.066504262387753,0.045662928372622,0.039889961481094,0.058820124715567,-0.147741705179214,-0.090573735535145,-0.015119588933885,-0.043136253952980,0.066991738975048,0.010317236185074,0.052847046405077,-0.007913297973573) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.080525182187557,-0.034685224294662,0.109112441539764,-0.232729479670525,0.062412310391665,-0.026589607819915,0.260211437940598,-0.260595768690109,0.005509354639798,-0.097144775092602,0.032378543168306,-0.428065806627274,0.225961849093437,0.071597628295422,0.262821972370148,-0.284371107816696) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.140671610832214,-0.016731439158320,-0.045670613646507,-0.080262534320354,-0.097981341183186,-0.012903595343232,0.055204585194588,-0.018459463492036,-0.182720303535461,0.025185793638229,-0.083830825984478,-0.038443896919489,-0.174172028899193,0.077135317027569,0.086282581090927,0.174776315689087) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.011434829793870,-0.130816474556923,0.021679293364286,-0.057874731719494,0.005506468936801,-0.132017314434052,0.003458279883489,-0.064090408384800,0.059688385576010,-0.150889337062836,-0.076975092291832,-0.069915957748890,0.033287696540356,-0.208912044763565,0.080153070390224,0.108873404562473) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.002313249744475,-0.140371978282928,-0.019475694745779,-0.209878385066986,-0.035651113837957,-0.115475863218307,0.109532572329044,-0.050109524279833,-0.079670600593090,-0.115801811218262,-0.112710207700729,-0.020908031612635,0.099539257586002,0.021329313516617,-0.001593654626049,0.020756395533681) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.082562051713467,0.011908635497093,-0.106334373354912,-0.087678357958794,0.053121678531170,-0.003025523154065,-0.054277673363686,-0.073941580951214,0.016757823526859,-0.055442333221436,0.028398362919688,0.025906587019563,-0.032566495239735,0.124658703804016,0.118626594543457,0.094908557832241) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.005194114986807,-0.029749343171716,-0.034046061336994,0.058554582297802,-0.008620989508927,0.027735814452171,0.039556141942739,-0.013568261638284,-0.000248648051638,-0.003790166694671,0.011551273055375,-0.080875568091869,0.029509523883462,0.049830850213766,-0.004047034773976,-0.053892921656370) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.040527801960707,0.042199362069368,0.016476973891258,-0.022419679909945,-0.156786397099495,0.017903316766024,0.008695060387254,0.027283847332001,-0.124263040721416,0.049607776105404,0.046122822910547,0.056299619376659,-0.052591893821955,0.010704156942666,-0.023654382675886,0.018813900649548) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.001469712937251,0.032701604068279,0.027399282902479,0.112406753003597,0.031012782827020,-0.016003625467420,0.010675719939172,-0.026137797161937,-0.045755464583635,0.004044591914862,0.057173371315002,-0.025541061535478,0.038374967873096,-0.028840182349086,0.024069026112556,-0.011998886242509) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.011624715290964,0.068366043269634,0.046805668622255,0.056338883936405,-0.016247656196356,-0.128026321530342,-0.056451518088579,0.004977419972420,0.014825831167400,-0.070690579712391,0.006945913657546,0.033370971679688,-0.094770543277264,0.103968054056168,-0.038865480571985,0.005471537355334) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.109342239797115,0.028017254546285,-0.005507368128747,0.058772832155228,0.225897088646889,-0.073649004101753,0.112732701003551,-0.294706910848618,0.155617251992226,-0.009233822114766,0.126778036355972,-0.162837848067284,-0.121336601674557,0.064886659383774,-0.006858153734356,-0.009450230747461) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.094128958880901,0.046187564730644,0.065634615719318,-0.023619690909982,-0.061434455215931,-0.006709917914122,0.006401898339391,0.102736242115498,-0.011140083894134,0.057539969682693,-0.038577165454626,0.045198790729046,-0.168955415487289,0.034966990351677,0.005641295108944,0.022563891485333) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.059906918555498,0.034325674176216,-0.037892613559961,-0.024380007758737,-0.032607346773148,-0.147452875971794,0.054952770471573,0.024167221039534,0.066464677453041,-0.091814614832401,0.077071346342564,-0.075758531689644,-0.017123332247138,0.050626579672098,0.003879545722157,0.047720119357109) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.001610124483705,-0.013539564795792,0.000183988420758,-0.021310161799192,-0.008526125922799,-0.033451437950134,0.093486681580544,0.036263111978769,0.008742894977331,-0.033594202250242,0.074652284383774,-0.034081742167473,-0.020067427307367,0.042184572666883,-0.018048368394375,-0.056618835777044) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.064668186008930,-0.036095391958952,-0.011288689449430,-0.034960839897394,-0.069045789539814,0.104613505303860,0.172949656844139,0.059640318155289,0.047830112278461,0.041882224380970,-0.007718272507191,-0.122573852539063,-0.106857754290104,0.032311547547579,-0.059455420821905,-0.045227836817503) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.003581006545573,0.004863952286541,-0.000005119203706,0.000910909671802) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL6
//!DESC [AiUpscale_HQ_3x_Photo] mapping 1_6

vec4 hook()
{
vec4 res = vec4(-0.696363508701324,0.044383142143488,-0.176593244075775,-0.267000019550323);
res += mat4(-0.014509054832160,-0.064219556748867,-0.055012702941895,0.064721703529358,-0.092235170304775,0.128192931413651,0.029719343408942,-0.104986466467381,0.022275071591139,0.053984906524420,0.026746673509479,-0.010438892990351,-0.065813876688480,0.149529740214348,-0.040573429316282,-0.135881707072258) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.047583684325218,-0.247045531868935,-0.027018899098039,-0.113053455948830,0.063611231744289,0.031300943344831,0.063275955617428,-0.042541421949863,0.031143914908171,0.004847222007811,-0.041070468723774,0.094897009432316,0.002771747065708,-0.117364317178726,-0.071009166538715,0.105108879506588) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.066048368811607,-0.019134461879730,-0.073200829327106,-0.040815021842718,-0.090702533721924,-0.072360262274742,-0.035813216120005,0.072811342775822,-0.120021812617779,0.083915546536446,0.040099021047354,-0.125159174203873,0.004730448592454,0.004244389012456,-0.001157043385319,-0.054931052029133) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.285303622484207,-0.022729856893420,-0.130626782774925,0.138612464070320,-0.022807231172919,-0.036532055586576,0.106647893786430,0.012065657414496,0.104215860366821,0.009749720804393,0.019544802606106,-0.033525187522173,-0.001856286078691,0.007620714604855,-0.003626238089055,0.032979581505060) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.333342850208282,-0.041621867567301,-0.025885386392474,0.051257204264402,0.082175195217133,-0.005311446730047,-0.024484232068062,0.003166106296703,0.022196006029844,0.014107964001596,-0.001381422858685,0.125227689743042,0.091485388576984,0.105137735605240,-0.089311450719833,-0.060855142772198) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.097533427178860,-0.078037016093731,0.073901407420635,-0.053999889642000,0.075637280941010,-0.028108565136790,0.033973466604948,0.085617110133171,-0.035157546401024,0.042565271258354,0.062796361744404,-0.074434347450733,-0.029835328459740,0.068729229271412,0.037024985998869,0.115472547709942) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.048324827104807,0.062279831618071,-0.146181210875511,-0.026804676279426,0.098245069384575,-0.136776506900787,0.050256859511137,-0.100341998040676,-0.118151612579823,0.031918618828058,0.044542878866196,0.030413633212447,0.061293367296457,-0.034745547920465,-0.090131476521492,-0.016710568219423) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.189422219991684,-0.145931422710419,-0.261912047863007,-0.040902405977249,0.051556188613176,-0.034422289580107,-0.061473619192839,-0.109745010733604,0.023738162592053,0.004526103381068,-0.101634182035923,0.047928664833307,-0.106927946209908,-0.085310451686382,-0.100769646465778,-0.128177359700203) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.114092163741589,-0.022918084636331,-0.161190882325172,-0.020707119256258,0.001976771978661,-0.048998255282640,-0.019091673195362,0.029248991981149,0.001184379914775,0.081844806671143,0.052559286355972,0.045262333005667,-0.048969611525536,-0.029829328879714,-0.011870060116053,0.028384655714035) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.060126382857561,-0.026835523545742,-0.015887234359980,0.021535992622375,0.040781952440739,-0.025449752807617,-0.011108326725662,-0.045212350785732,-0.180491745471954,-0.106028698384762,-0.012612982653081,0.076013877987862,-0.086841098964214,0.071357719600201,0.023366801440716,-0.048112053424120) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.237805917859077,0.104226917028427,0.105606690049171,-0.104538500308990,-0.059296492487192,0.062541455030441,0.039112675935030,0.104640193283558,-0.026229783892632,-0.003081002272666,-0.027634304016829,-0.058267496526241,0.076701954007149,0.057471975684166,0.024055056273937,0.066400252282619) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.061410348862410,0.199857607483864,0.015347134321928,-0.066584922373295,-0.000586972397286,-0.024529572576284,-0.025993870571256,0.037405926734209,0.008982984349132,0.031253810971975,-0.056622389703989,0.153373926877975,-0.023354528471828,-0.031857151538134,-0.028330201283097,0.000805229588877) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.047019649296999,0.010041264817119,0.014545134268701,0.067869678139687,0.069053560495377,-0.022042654454708,-0.018520006909966,0.108674034476280,-0.013895027339458,-0.097595967352390,0.076247431337833,0.147591486573219,-0.003092989092693,-0.062048133462667,0.109372600913048,-0.109370820224285) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.174015402793884,0.074662983417511,0.140930399298668,-0.084196574985981,-0.066160552203655,-0.076964959502220,-0.031748026609421,-0.116331622004509,-0.099790632724762,-0.124147027730942,0.057213794440031,-0.155219480395317,0.003511730581522,0.126095399260521,0.062546536326408,0.062178056687117) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.065855845808983,0.138517260551453,0.109720841050148,-0.086578875780106,-0.005678853020072,-0.012485307641327,-0.007853486575186,0.055982690304518,-0.080090962350368,-0.091237239539623,-0.029626047238708,0.060088071972132,0.033488620072603,0.124264806509018,-0.037354130297899,-0.085442863404751) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.078307442367077,0.031605791300535,-0.074849352240562,-0.106825836002827,-0.010199494659901,-0.023604715242982,-0.074294738471508,-0.071176879107952,-0.141067236661911,-0.086257703602314,0.001502222614363,0.094592660665512,-0.005797172430903,-0.037853490561247,-0.086352802813053,-0.068562306463718) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.056489236652851,0.084827125072479,0.120164155960083,0.021299481391907,0.025354066863656,0.048837926238775,0.049169424921274,0.174303233623505,-0.123206622898579,-0.068564243614674,0.329387694597244,0.043401364237070,-0.006490634288639,0.030882559716702,-0.113206952810287,0.110938400030136) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.027040850371122,0.043855324387550,0.022227747365832,-0.147032350301743,-0.028452215716243,0.017505533993244,-0.032882358878851,-0.019568359479308,0.071667402982712,-0.058732673525810,0.144844263792038,-0.004050509538502,0.063016094267368,0.047197997570038,0.014814556576312,-0.039685841649771) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.009222676977515,-0.046880934387445,-0.021008281037211,0.024030430242419,-0.025587370619178,0.077015519142151,-0.035907138139009,-0.044556159526110,0.017472840845585,-0.022186039015651,-0.066564440727234,-0.035839304327965,0.000366905529518,-0.117032118141651,-0.006745274178684,0.035239491611719) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.013893689960241,0.008258571848273,0.006125531159341,-0.021940492093563,-0.126347810029984,-0.048949286341667,0.025886666029692,-0.008626478724182,-0.144979849457741,0.082991659641266,0.087954066693783,0.044913921505213,0.063859201967716,0.025916991755366,0.014397943392396,0.007514491677284) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.050537753850222,0.011076167225838,-0.062373928725719,-0.009434725157917,-0.008527347818017,-0.096571825444698,0.023413635790348,0.006381256505847,-0.024873729795218,-0.059562966227531,-0.062999978661537,-0.014440375380218,-0.052659668028355,0.082199402153492,0.036575388163328,0.016318919137120) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.049070511013269,0.075395755469799,0.006314897909760,-0.145513147115707,-0.007337763905525,0.048111975193024,-0.005444479174912,-0.028366662561893,-0.001966662472114,-0.042261995375156,0.059998974204063,-0.006232575047761,0.005649737548083,0.003532886272296,-0.000723882636521,-0.020510694012046) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.075703829526901,0.080335117876530,-0.048069301992655,0.168166369199753,-0.014245234429836,-0.189571753144264,0.097156286239624,0.022695314139128,-0.096798725426197,-0.017085548490286,0.046700812876225,-0.016604024916887,-0.082548961043358,0.049348145723343,-0.053574029356241,-0.060220353305340) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.004638172220439,0.096779011189938,0.034712824970484,-0.073887415230274,0.118357464671135,-0.145063370466232,-0.054458983242512,-0.016987791284919,0.095700778067112,-0.041782926768064,-0.021651193499565,0.020093305036426,-0.117745883762836,0.002692637732252,0.071080632507801,-0.072102397680283) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.066981732845306,0.022864067927003,0.108827285468578,0.210824221372604,0.049934051930904,0.024418944492936,-0.017546812072396,-0.032981965690851,-0.000961442827247,-0.085142493247986,0.066572822630405,0.045354843139648,0.000697670853697,-0.016292933374643,-0.043867800384760,0.053562726825476) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.014922297559679,0.012468997389078,-0.091543324291706,-0.128447204828262,0.034636661410332,-0.179563134908676,-0.037818253040314,0.033688955008984,-0.099664255976677,0.102039620280266,0.084217131137848,0.005244198720902,-0.026683093979955,0.112901397049427,0.138433873653412,0.022170297801495) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.046072904020548,-0.001007411046885,0.066440261900425,0.119559369981289,-0.035896953195333,-0.096302740275860,-0.144799500703812,-0.029136026278138,-0.064396500587463,0.005718723870814,0.002995148068294,-0.048078838735819,0.033341776579618,0.102774016559124,0.197295844554901,-0.024952122941613) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.001446076785214,-0.023138733580709,-0.063567504286766,0.073143959045410,0.074981383979321,0.020942127332091,-0.006650890223682,0.007601179182529,-0.041999958455563,-0.034260038286448,-0.016380751505494,0.061901491135359,0.126442059874535,0.037969551980495,-0.010872636921704,-0.065432436764240) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.001722965738736,-0.062033407390118,-0.008951416239142,-0.081740528345108,0.035263881087303,-0.042857054620981,-0.060942169278860,0.032181531190872,0.048077981919050,0.013805833645165,-0.001691745361313,-0.063217051327229,0.104480989277363,-0.073694474995136,0.076567560434341,0.045064650475979) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.040286205708981,0.015522024594247,0.061261404305696,0.021076124161482,-0.051951695233583,0.112426757812500,0.017394909635186,-0.001017175382003,-0.044672176241875,0.028713734820485,0.004568563308567,-0.005286904051900,-0.006723669357598,-0.102703787386417,-0.020408364012837,0.060780264437199) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.014380473643541,0.013517127372324,0.055441331118345,-0.193316310644150,0.078934952616692,0.042847633361816,0.028068795800209,-0.104122586548328,-0.028709365054965,-0.036600124090910,-0.030111160129309,-0.033796574920416,-0.056187182664871,0.167986556887627,-0.006304474081844,0.095642969012260) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.031059827655554,0.035882089287043,0.008107400499284,0.126612395048141,0.235556781291962,0.346729725599289,-0.061142295598984,0.110412679612637,-0.019472647458315,0.126800939440727,0.034758076071739,0.016061861068010,-0.121757112443447,-0.134399220347404,-0.156189769506454,-0.232037574052811) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.052260253578424,-0.075175426900387,-0.026690244674683,-0.065977707505226,-0.189103916287422,0.219714522361755,0.061976157128811,0.029733242467046,-0.012502495199442,0.068215444684029,0.024060692638159,-0.013336891308427,0.110149130225182,0.078812137246132,0.044146280735731,0.130912408232689) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.053744483739138,0.018534667789936,-0.006028074771166,0.153659731149673,-0.056514322757721,0.022267930209637,-0.057449109852314,0.091937422752380,-0.018999936059117,-0.044562879949808,0.058041103184223,-0.010731020011008,0.037157583981752,0.022695340216160,-0.033747054636478,-0.022633632645011) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.009084179997444,-0.054616764187813,0.056909967213869,-0.130964264273643,-0.024443473666906,-0.001495374832302,-0.276531219482422,-0.278237968683243,0.041580226272345,0.060642719268799,0.098961718380451,-0.072789579629898,-0.057134915143251,-0.019583353772759,0.070795416831970,0.032164178788662) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.053266361355782,-0.006724748760462,-0.017155166715384,0.145602956414223,-0.007568838074803,0.008134090341628,0.075248263776302,0.262878417968750,-0.022994665428996,0.010649766772985,0.061049968004227,0.043071947991848,0.015570145100355,-0.036590911448002,-0.085227899253368,-0.092786394059658) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.002091365633532,0.073570951819420,-0.006875330116600,-0.141759485006332,-0.009424141608179,0.101405046880245,0.012246542610228,-0.065533153712749,0.041788395494223,0.076394170522690,0.001672854064964,-0.125889569520950,0.079386539757252,0.146565824747086,0.042807612568140,-0.076545991003513) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.012732243165374,-0.054054480046034,0.003104632021859,0.038956284523010,-0.080405183136463,0.113823294639587,0.062049407511950,0.074867412447929,0.001563927158713,-0.161745309829712,0.005442620255053,0.060111403465271,-0.074575923383236,0.042129602283239,0.013090424239635,-0.041885763406754) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.089959442615509,-0.001619164133444,-0.039468586444855,-0.053241454064846,-0.045015379786491,0.035188492387533,-0.005764626432210,-0.094673641026020,0.018149109557271,-0.035783328115940,0.049275781959295,-0.114748209714890,0.078246876597404,0.144813790917397,0.066143535077572,-0.072812467813492) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.008514054119587,0.022171717137098,0.021775022149086,0.009751919656992,-0.005300116259605,-0.062525779008865,0.072198010981083,-0.079270347952843,-0.163706347346306,0.058284226804972,0.041466288268566,-0.121790476143360,0.104606799781322,0.057752367109060,0.053869407624006,-0.134641826152802) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.211146607995033,-0.030546115711331,0.001465846900828,-0.003994068130851,0.138463884592056,0.139530777931213,0.142564862966537,0.170594573020935,0.221446022391319,-0.060620564967394,-0.078445985913277,0.036210045218468,0.329769402742386,0.349299132823944,0.096429869532585,0.209173470735550) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.031489253044128,0.025813024491072,0.064182236790657,0.069841071963310,-0.046209249645472,-0.053581953048706,-0.033394549041986,-0.019573083147407,-0.061534095555544,-0.009417545981705,0.062043998390436,-0.057728324085474,-0.066032864153385,0.146246373653412,0.029817337170243,-0.100372366607189) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.037422202527523,0.024283399805427,0.049130186438560,-0.036799926310778,-0.002045325236395,-0.076525256037712,0.017462853342295,0.012434136122465,0.118016064167023,0.071035936474800,-0.082479491829872,-0.003228877903894,-0.024452380836010,0.079668387770653,-0.056577626615763,-0.090536467730999) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.067001990973949,0.012274223379791,-0.166568279266357,-0.024862105026841,-0.035598363727331,0.032643731683493,-0.127130955457687,-0.041146289557219,-0.034362766891718,-0.155481874942780,-0.260302752256393,-0.111051902174950,0.111883416771889,-0.055967312306166,-0.304892897605896,-0.115014702081680) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.009354853071272,-0.003137086052448,-0.063168197870255,0.079540096223354,0.029042219743133,-0.001913913409226,-0.075639262795448,0.023234350606799,-0.126062691211700,0.019150437787175,-0.106707036495209,0.020693203434348,0.068868719041348,0.047921501100063,-0.019997823983431,0.053928285837173) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.005379632115364,-0.040048222988844,0.012230459600687,-0.076978236436844,-0.027689617127180,0.041858244687319,0.022700309753418,0.121911607682705,-0.048974629491568,-0.089253827929497,-0.006208634003997,0.040031217038631,-0.003747466951609,-0.014310971833766,0.039269335567951,0.042217247188091) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.015852566808462,0.046727288514376,-0.048760645091534,-0.003723608329892,0.015078422613442,0.033626116812229,0.073540054261684,-0.038783956319094,-0.077437937259674,0.052802190184593,0.032696869224310,-0.006712780334055,-0.065000839531422,0.033928241580725,0.001351687591523,-0.039134394377470) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.050000548362732,0.048909351229668,-0.051513977348804,-0.006366378162056,0.017258770763874,-0.052852120250463,0.050972372293472,-0.043468929827213,-0.032646786421537,-0.096754617989063,-0.010517655871809,-0.044620405882597,0.087074056267738,-0.001885355683044,0.014965848997235,-0.001358646317385) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.052914764732122,-0.032698411494493,0.014987624250352,0.152285903692245,0.051010977476835,0.013129113242030,-0.038487825542688,-0.176597177982330,-0.007023245561868,-0.133725196123123,-0.039064101874828,-0.059867523610592,0.097838461399078,0.024467416107655,-0.104346916079521,-0.051213964819908) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.050448883324862,-0.086312510073185,-0.000353632087354,-0.140829429030418,0.180621832609177,0.228292137384415,0.033779762685299,0.182548493146896,0.054575402289629,0.153737977147102,0.034680482000113,0.078456170856953,-0.052312336862087,-0.065532609820366,0.071443915367126,0.064529597759247) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.012664638459682,-0.062717325985432,-0.040579561144114,0.098412401974201,-0.168060988187790,0.182801753282547,0.037558726966381,-0.090667158365250,-0.076928228139877,0.002230737358332,-0.045456811785698,-0.047418169677258,0.033553563058376,-0.004477922338992,0.013985061086714,-0.025265039876103) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.066601142287254,0.010644054040313,0.039764698594809,0.029732307419181,0.016063801944256,0.086743913590908,0.006057877559215,0.011284627951682,0.071480162441730,-0.070079557597637,0.021490126848221,0.095054447650909,-0.041720218956470,0.062768183648586,0.063337229192257,0.012937697581947) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.052922386676073,0.062524013221264,0.021328939124942,0.085695013403893,-0.005926109384745,-0.068045325577259,-0.229961231350899,-0.117930985987186,-0.119695998728275,0.044630993157625,-0.097683191299438,-0.144882768392563,0.071717292070389,0.018694018945098,0.053537856787443,0.111481994390488) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.049431893974543,0.026586113497615,-0.048441655933857,-0.048063259571791,-0.067643590271473,0.035506606101990,0.047527898102999,0.069730348885059,-0.104188665747643,-0.031639046967030,-0.024915147572756,0.008403526619077,-0.032117940485477,-0.046093896031380,0.035726100206375,0.045585826039314) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.302218854427338,0.029273729771376,0.056159518659115,-0.029337408021092) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_HQ_3x_Photo] mapping 2_1

vec4 hook()
{
vec4 res = vec4(-0.051499005407095,0.021089281886816,-0.182278811931610,-0.144830599427223);
res += mat4(-0.079095862805843,-0.005639558192343,-0.091561421751976,0.016341995447874,-0.033033192157745,0.122884683310986,0.052665054798126,-0.088935926556587,-0.162236765027046,-0.013460082001984,0.040777284651995,0.010261429473758,0.019886359572411,-0.039192114025354,-0.051481772214174,-0.074646189808846) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.184977501630783,-0.028484279289842,0.093510128557682,-0.114956893026829,0.055773992091417,0.019712828099728,0.039509333670139,-0.046436402946711,-0.102880209684372,0.062177211046219,-0.105285055935383,-0.003418679814786,0.077667914330959,-0.024200243875384,0.059040986001492,-0.035205930471420) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.240961492061615,-0.101400315761566,0.286515384912491,0.018928291276097,-0.009033888578415,0.053660128265619,0.029517153277993,-0.084778495132923,-0.110178112983704,0.005358943250030,0.003767932765186,-0.200066015124321,-0.129556953907013,-0.286411851644516,0.187224552035332,0.021684473380446) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.065308891236782,0.014936861582100,-0.107957698404789,-0.034474007785320,0.093417152762413,-0.044191047549248,0.044449351727962,0.170922011137009,-0.150380939245224,-0.015323126688600,-0.025090571492910,0.074272312223911,0.046813163906336,-0.055317971855402,-0.070999264717102,-0.045064661651850) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.253612786531448,-0.042586322873831,-0.151869893074036,-0.064740546047688,0.009130598045886,-0.169096633791924,0.055163804441690,0.174241319298744,-0.039241511374712,-0.018003355711699,-0.184174150228500,-0.144303038716316,0.222077414393425,0.074437700212002,0.002803296782076,0.041664950549603) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.085240691900253,0.239114016294479,-0.055859919637442,0.089723348617554,-0.075275868177414,0.086513720452785,0.074191734194756,0.061790034174919,-0.000525503768586,0.034309919923544,0.012426955625415,-0.055991169065237,-0.054899699985981,0.057978358119726,0.078419551253319,0.007265074178576) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.014691570773721,-0.002289395779371,-0.027295213192701,0.079018533229828,0.059443358331919,-0.059107150882483,0.043265558779240,-0.009338296949863,-0.081582710146904,0.015811871737242,0.080926589667797,-0.023265639320016,-0.025194155052304,-0.024774754419923,-0.015859059989452,-0.064861305058002) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.192917793989182,0.005618516355753,-0.018318166956306,-0.111137509346008,-0.064774699509144,-0.075731642544270,0.044830176979303,0.112664468586445,-0.037729281932116,-0.029074553400278,-0.046965539455414,0.095525607466698,0.059194989502430,-0.026825174689293,-0.056778021156788,0.016824929043651) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.102984622120857,-0.067659065127373,-0.113704182207584,-0.027638807892799,0.010706688277423,0.146589234471321,-0.018782366067171,-0.032726448029280,0.035123135894537,0.004882666748017,-0.022792529314756,0.014029241167009,0.023062750697136,0.036106672137976,0.192148134112358,-0.016773292794824) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.011450204998255,0.001357183558866,-0.061963319778442,-0.029501484706998,0.051726348698139,0.009002445265651,-0.039786227047443,0.053212985396385,-0.137073084712029,-0.055471867322922,0.146988585591316,0.049946017563343,-0.065579913556576,0.016909483820200,0.011396056972444,-0.041888277977705) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.041239373385906,-0.022897571325302,-0.041593603789806,-0.266238003969193,0.029076108708978,-0.001177248195745,-0.058757752180099,-0.020197598263621,0.233181267976761,0.004839661996812,-0.025260614231229,0.054666671901941,0.073746487498283,-0.017672281712294,0.109796956181526,0.111769147217274) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.036226939409971,-0.060996551066637,-0.046475686132908,-0.213056460022926,-0.057557202875614,0.035453021526337,0.005495786201209,-0.054847255349159,0.003180416068062,-0.026923242956400,-0.136899709701538,0.036609992384911,-0.166937679052353,-0.021241139620543,0.174936011433601,-0.094359710812569) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.130011841654778,0.006720892619342,-0.013044781051576,-0.149421498179436,-0.030302951112390,-0.034965310245752,-0.018047884106636,-0.035328090190887,-0.083535939455032,-0.092937797307968,-0.073276072740555,-0.150146707892418,0.045255374163389,0.054919671267271,-0.024858465418220,-0.041934639215469) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.121182456612587,0.141246110200882,0.043481096625328,-0.039589196443558,-0.038275610655546,0.034919589757919,-0.128351479768753,0.003798224497586,0.154334187507629,-0.089063771069050,0.193971812725067,-0.102163583040237,-0.008532520383596,0.216151863336563,-0.049855872988701,-0.232565596699715) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.013882683590055,0.102620571851730,0.077565923333168,-0.087255552411079,-0.024217855185270,0.032625105232000,-0.012363530695438,-0.034981481730938,-0.267404258251190,0.080834008753300,0.062522187829018,-0.025862516835332,-0.060521639883518,-0.113773867487907,-0.033492792397738,-0.056002497673035) * MODEL2_texOff(vec2(0,1));
res += mat4(0.015947135165334,-0.072051160037518,-0.080721206963062,0.199256986379623,-0.004111351445317,0.022049520164728,0.028327094390988,0.019811224192381,0.055699318647385,0.059628032147884,-0.161287978291512,-0.035081457346678,0.005521112121642,0.033171858638525,0.022075723856688,-0.010491863824427) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.163650169968605,-0.132990047335625,-0.219786345958710,-0.195587038993835,-0.040068257600069,0.075944744050503,-0.094869241118431,-0.012559285387397,-0.080339916050434,-0.042859297245741,-0.062589675188065,-0.066532827913761,-0.018222486600280,0.082428731024265,-0.013422121293843,-0.115532107651234) * MODEL2_texOff(vec2(1,0));
res += mat4(0.187423154711723,-0.052093222737312,-0.128745868802071,-0.143246367573738,0.033147890120745,0.066247023642063,-0.051310840994120,0.015120112337172,0.043569669127464,0.060750193893909,0.195371329784393,0.049240112304688,0.060942441225052,0.068566836416721,-0.010717915371060,-0.024600831791759) * MODEL2_texOff(vec2(1,1));
res += mat4(0.121302820742130,0.034637652337551,-0.014150837436318,-0.009795942343771,0.025536585599184,-0.036206282675266,-0.042473584413528,0.009450353682041,-0.009581274352968,-0.022272702306509,-0.147012591362000,0.082919985055923,-0.141278460621834,-0.017523471266031,0.054526150226593,-0.083319380879402) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.147013440728188,0.051110606640577,0.108728796243668,-0.117859363555908,-0.078480593860149,-0.125772073864937,-0.045808080583811,0.054614182561636,-0.174842819571495,-0.053812328726053,-0.272235989570618,-0.076105765998363,0.334951251745224,-0.057509690523148,-0.013195618055761,-0.122600272297859) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.212739244103432,-0.087977692484856,0.094175994396210,0.026578309014440,-0.009517136961222,0.039959695190191,-0.003263329854235,0.085950233042240,0.141486570239067,-0.036619134247303,-0.034651234745979,-0.037741281092167,-0.137961506843567,0.048966985195875,-0.176069453358650,-0.128425672650337) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.017375256866217,0.021179903298616,0.002798562636599,-0.038651343435049,-0.058362431824207,-0.009880729950964,0.002726893406361,0.005635619629174,-0.038137502968311,-0.010340625420213,-0.033597350120544,0.053629141300917,0.003945414442569,-0.086578927934170,-0.010195131413639,0.004934166092426) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.092532247304916,0.069439470767975,-0.092805847525597,-0.148308560252190,-0.006806911434978,-0.127236932516098,0.020746475085616,0.008602422662079,-0.082692772150040,0.069137506186962,-0.050178043544292,-0.093209542334080,-0.141364336013794,-0.258770853281021,0.009987503290176,-0.127713471651077) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.169868305325508,0.146064698696136,-0.018630927428603,-0.051506321877241,0.026918880641460,0.023247933015227,-0.002860540756956,0.038433320820332,-0.087431952357292,-0.117706559598446,-0.070186845958233,0.011919574812055,0.065070636570454,0.455054461956024,-0.131405442953110,-0.075948216021061) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.104726918041706,0.043561100959778,0.141099780797958,0.304081499576569,-0.040220595896244,0.044494267553091,0.015102199278772,-0.070251189172268,-0.103845782577991,-0.094742320477962,0.001367714605294,-0.007734110113233,0.176968321204185,0.017642127349973,-0.001169694005512,0.045084353536367) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.057937137782574,-0.205268830060959,0.097383618354797,-0.054089602082968,0.057383205741644,-0.114575177431107,0.053546119481325,-0.071431353688240,0.189863845705986,-0.032938770949841,-0.062955990433693,0.071037776768208,-0.220951929688454,-0.135414615273476,0.035827647894621,0.420528590679169) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.008078640326858,0.022655509412289,-0.129868164658546,0.019676420837641,0.069170050323009,-0.046701595187187,0.059984382241964,0.037838056683540,-0.067905440926552,0.037600420415401,-0.023777855560184,0.063564985990524,0.066493347287178,0.045717559754848,0.047763526439667,-0.034030508249998) * MODEL3_texOff(vec2(1,1));
res += mat4(0.012819223105907,-0.020131809636950,0.029021138325334,-0.011238994076848,0.002202772302553,-0.039917655289173,0.011375130154192,0.017895372584462,-0.117519974708557,0.022853355854750,-0.056929565966129,-0.135786905884743,0.000050751423259,0.000155736663146,0.000257710140431,0.000063490464527) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.047533992677927,0.052740592509508,0.140755802392960,-0.139847844839096,-0.051145888864994,-0.015328363515437,-0.049270026385784,-0.096847631037235,-0.160847142338753,0.096552431583405,0.009918588213623,-0.128312394022942,0.000042083287553,0.000020373612642,0.000557430787012,0.000089792600193) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.022135362029076,0.015079383738339,0.290665477514267,-0.150812536478043,0.035326242446899,0.029384152963758,0.002693645423278,0.030442629009485,-0.000924235093407,0.053111962974072,0.122531011700630,-0.175641015172005,0.000058402340073,-0.000575808284339,0.000806889554951,0.000071135436883) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.064581051468849,-0.021209096536040,-0.083453178405762,0.033003646880388,-0.004926260095090,-0.060079045593739,-0.093176282942295,-0.059144396334887,-0.137041226029396,-0.055897522717714,-0.074642926454544,-0.134821251034737,0.000046717086661,0.000154866764206,0.000038005255192,0.000088113389211) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.004393253941089,-0.097109779715538,-0.101877264678478,0.091953307390213,-0.011630440130830,-0.021924573928118,-0.172138318419456,-0.171273410320282,-0.110013648867607,0.003512605093420,-0.025512002408504,0.040828712284565,0.000051617331337,0.000107683503302,0.000256274419371,0.000093240079877) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.082428142428398,-0.296935439109802,-0.027037912979722,-0.079471521079540,-0.006795652676374,0.050745289772749,-0.132457092404366,-0.078061178326607,-0.068349555134773,0.029036430642009,0.019323125481606,-0.090795576572418,0.000059578243963,-0.000454232678749,0.000347780034645,0.000080098689068) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.064451672136784,-0.007676573004574,-0.039322309195995,-0.129892513155937,-0.012649160809815,0.023886159062386,0.028947697952390,-0.048563387244940,-0.194576263427734,-0.041645009070635,-0.034899387508631,0.041439406573772,0.000027335721825,0.000586044217926,-0.000056276341638,0.000081125595898) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.042189020663500,0.055411342531443,0.069862216711044,-0.321396678686142,0.050708886235952,0.098684653639793,-0.031080855056643,-0.065272353589535,-0.127363592386246,0.034650951623917,-0.044867694377899,0.128301560878754,0.000076456592069,0.000635342265014,0.000020369621780,0.000089930967079) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.112463936209679,-0.142655983567238,-0.048080086708069,0.011224517598748,-0.031100453808904,0.031020553782582,0.044518776237965,0.061000909656286,-0.042563907802105,0.053971175104380,-0.153310328722000,-0.041772395372391,0.000053348150686,0.000191034661839,0.000029452534363,0.000073566356150) * MODEL4_texOff(vec2(1,1));
res += mat4(0.089747838675976,-0.027163771912456,-0.030147399753332,-0.005215901415795,0.068417027592659,-0.160973131656647,0.047344319522381,-0.016677254810929,-0.040555056184530,-0.021818177774549,0.005182172171772,0.048278026282787,-0.208042725920677,-0.010405041277409,0.029609952121973,0.041362892836332) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.115743882954121,0.075677938759327,0.018543643876910,-0.058137267827988,0.046592798084021,-0.036085300147533,0.006444078870118,-0.016005305573344,0.030426975339651,-0.275629073381424,0.086818732321262,0.122893854975700,0.070347078144550,-0.092142991721630,-0.117489747703075,-0.136157155036926) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.058498393744230,0.081460438668728,0.020178599283099,0.013652203604579,-0.081288233399391,-0.047928001731634,-0.045225523412228,0.000518077868037,-0.041559062898159,0.005142278503627,0.192782178521156,0.078136257827282,-0.031735278666019,0.077620841562748,0.046766720712185,0.084318965673447) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.071330085396767,0.027064166963100,-0.012311199679971,0.030828237533569,-0.160950332880020,0.024396654218435,-0.021977324038744,-0.008567819371819,0.003894867608324,0.226062253117561,-0.005242263898253,-0.208830952644348,0.120754212141037,0.073535248637199,0.008711934089661,-0.065117135643959) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.054642476141453,0.085814669728279,-0.024818744510412,0.014832464046776,-0.012330258265138,0.021812912076712,-0.017241438850760,0.134117648005486,0.021540807560086,-0.071055553853512,-0.075012676417828,-0.004676043521613,-0.020907295867801,-0.102600686252117,-0.079756274819374,-0.249417439103127) * MODEL5_texOff(vec2(0,0));
res += mat4(0.092731252312660,0.005419739056379,0.068670377135277,-0.084368988871574,-0.048569601029158,-0.156040787696838,0.013050368987024,0.333222359418869,0.008637971244752,-0.089299373328686,-0.073520399630070,-0.085402064025402,-0.003908902872354,0.077926181256771,-0.016068603843451,-0.053968902677298) * MODEL5_texOff(vec2(0,1));
res += mat4(0.138916194438934,-0.038146860897541,0.020499523729086,-0.107212312519550,-0.008112585172057,0.031591761857271,0.037833139300346,-0.106251649558544,-0.011324231512845,0.066538646817207,0.004881788976490,-0.072253018617630,0.100503884255886,0.045998092740774,-0.031537842005491,0.046621449291706) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.052793733775616,0.132994160056114,0.017104428261518,0.101675659418106,0.030247524380684,0.055676262825727,-0.013684385456145,-0.087351404130459,-0.026746893301606,-0.180668398737907,-0.016718436032534,0.069302603602409,-0.068612024188042,-0.024705417454243,0.061378411948681,0.240984141826630) * MODEL5_texOff(vec2(1,0));
res += mat4(0.024063974618912,0.052946671843529,-0.010269505903125,-0.065261334180832,0.024052806198597,0.034357666969299,0.058457672595978,-0.066567994654179,-0.007639807183295,0.034709393978119,-0.010217341594398,0.008415663614869,0.126313671469688,0.059191789478064,-0.014550885185599,-0.007733461912721) * MODEL5_texOff(vec2(1,1));
res += mat4(0.143256470561028,0.031732801347971,-0.100224807858467,-0.087544657289982,-0.032909434288740,-0.040587339550257,-0.057528167963028,0.038672845810652,0.114029988646507,-0.009865116328001,0.018536007031798,0.017409363761544,-0.027552329003811,-0.047081656754017,-0.154946640133858,-0.005152495112270) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.038620006293058,-0.007183988112956,-0.103596873581409,-0.132424265146255,-0.009995390661061,-0.056264176964760,-0.002899133600295,0.045375894755125,-0.099818184971809,-0.166361898183823,-0.016917264088988,-0.183210164308548,-0.007229236885905,0.036876168102026,0.188201487064362,-0.120889686048031) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.128855973482132,0.076325468719006,0.515274882316589,-0.087882548570633,0.004686728119850,-0.003839830402285,0.059333179146051,0.030576530843973,-0.040020648390055,0.221702411770821,-0.026236584410071,0.016131570562720,-0.040399495512247,-0.065139837563038,0.053667575120926,-0.043677061796188) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.112293332815170,-0.032343093305826,-0.146901890635490,-0.000620253209490,-0.007151164580137,0.052465617656708,-0.005101067945361,0.021631620824337,0.028791962191463,-0.098332643508911,-0.044275317341089,0.044021882116795,-0.057320181280375,-0.065873913466930,0.000832607038319,0.083483263850212) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.033369682729244,0.014509064145386,-0.272930413484573,-0.024910612031817,-0.071710057556629,-0.018375072628260,-0.011717350222170,0.163662791252136,-0.084712006151676,-0.076471932232380,0.046420123428106,0.269794225692749,0.030573934316635,-0.200034663081169,-0.017927916720510,-0.010640206746757) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.149676725268364,-0.003487338777632,-0.233818188309669,0.024997737258673,-0.068539157509804,-0.178950682282448,-0.009392200969160,0.228865757584572,0.028795167803764,0.085677340626717,-0.065756045281887,-0.099168032407761,-0.101070195436478,-0.028541516512632,-0.007424268871546,0.028320692479610) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.069509349763393,-0.005108532495797,-0.021304147318006,0.125220715999603,0.048122312873602,-0.005559142213315,0.008454329334199,-0.056939873844385,-0.027036963030696,0.003190673887730,0.047481842339039,-0.052222892642021,0.116542488336563,-0.038470309227705,-0.037196911871433,0.080724194645882) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.100799709558487,-0.044688135385513,-0.193250164389610,-0.194951966404915,0.048081245273352,-0.058224864304066,0.120422042906284,-0.136849090456963,0.046007148921490,-0.013557379133999,0.023527355864644,0.087089598178864,0.037075482308865,-0.079782128334045,-0.062645107507706,0.153966218233109) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.012864341028035,0.054168336093426,-0.249978184700012,-0.015695746988058,0.017241060733795,0.041717730462551,0.008676024153829,-0.050717573612928,-0.054299399256706,0.044616658240557,-0.000529309909325,-0.051759671419859,-0.020904246717691,-0.090773731470108,-0.107193544507027,-0.076987646520138) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.151154249906540,0.004482847172767,-0.078688256442547,-0.124940924346447) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_HQ_3x_Photo] mapping 2_2

vec4 hook()
{
vec4 res = vec4(-0.282182514667511,0.003480183193460,-0.106685929000378,-0.701680839061737);
res += mat4(-0.034683994948864,0.020439712330699,0.020979512482882,0.055285397917032,-0.010613967664540,0.186873301863670,-0.001833126996644,0.041958313435316,0.086148537695408,-0.036570522934198,-0.055426448583603,-0.019017437472939,-0.000549261749256,0.015607555396855,-0.001382817164995,-0.013322952203453) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.097423441708088,0.048437602818012,-0.184669151902199,0.024843068793416,0.001207837020047,0.111851714551449,-0.054126132279634,0.046948712319136,0.013724276795983,0.018145037814975,-0.045376930385828,-0.075322158634663,-0.085486732423306,-0.019632589071989,-0.153704807162285,0.062136806547642) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.017827020958066,-0.020340176299214,-0.043501198291779,0.023431919515133,-0.044062294065952,0.124205127358437,-0.037913825362921,-0.006250554695725,0.001138941268437,-0.003587535582483,-0.157312914729118,-0.072206668555737,0.066708363592625,-0.013596710748971,-0.024417588487267,0.082093395292759) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.137000218033791,-0.015120027586818,-0.104851730167866,-0.062025688588619,-0.007355506066233,-0.255342245101929,0.060223840177059,0.004216601140797,-0.021836640313268,-0.058079209178686,-0.134673401713371,-0.010682132095098,0.058117952197790,0.005891298409551,-0.053149934858084,-0.033165320754051) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.062171153724194,0.092792481184006,0.089462623000145,0.097205564379692,-0.011231059208512,-0.134291663765907,-0.018713800236583,-0.000865564215928,-0.020643144845963,0.038435176014900,-0.181439563632011,0.091372095048428,-0.028513053432107,-0.099984802305698,0.143175661563873,-0.059097353368998) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.040393460541964,-0.015145566314459,-0.002859246917069,-0.040684115141630,0.052503544837236,-0.402707338333130,-0.040173266083002,0.022033888846636,0.017077388241887,0.037994675338268,-0.184709340333939,0.021099615842104,0.018095323815942,-0.159813567996025,0.079651795327663,0.003061051014811) * MODEL1_texOff(vec2(0,1));
res += mat4(0.140400037169456,0.030873099341989,0.090617649257183,-0.130581825971603,-0.013193385675550,-0.042711157351732,-0.060988575220108,-0.076094873249531,-0.024398412555456,-0.024535663425922,-0.012927834875882,0.101392522454262,-0.055195346474648,-0.015783889219165,-0.031396046280861,-0.039014965295792) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.032506175339222,0.043933171778917,0.072850428521633,-0.095724701881409,-0.080663397908211,-0.052505407482386,-0.031653121113777,-0.047753527760506,0.025631949305534,-0.057824335992336,-0.035623587667942,0.033324591815472,0.089484632015228,0.017965337261558,-0.062255434691906,-0.047325450927019) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.037869472056627,-0.089810863137245,-0.028042403981090,-0.016161378473043,-0.021834786981344,-0.044866267591715,0.039005447179079,-0.074585430324078,0.018553398549557,-0.039275322109461,-0.094742901623249,-0.021502716466784,-0.008321036584675,0.023701611906290,-0.102399595081806,-0.005156232044101) * MODEL1_texOff(vec2(1,1));
res += mat4(0.065091855823994,-0.010669659823179,0.023100364953279,-0.009890548884869,0.013968457467854,-0.024050779640675,0.044914931058884,-0.043350730091333,0.003340163966641,-0.035408329218626,0.033697273582220,0.052586365491152,0.044097013771534,-0.003468000097200,-0.012861427851021,-0.052530542016029) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.083294130861759,0.012914882041514,0.029772967100143,0.006542513612658,0.009482001885772,-0.034812700003386,0.085305258631706,0.021973675116897,0.038744986057281,0.025440337136388,-0.020413596183062,0.007441174704581,0.010602377355099,0.008601583540440,0.101148433983326,0.012785255908966) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.064518734812737,0.016397502273321,0.069530412554741,0.028905104845762,-0.020944744348526,0.078205578029156,-0.002500142203644,0.031569272279739,0.061919897794724,-0.047967005521059,-0.070477254688740,-0.018718546256423,0.058438263833523,-0.052792135626078,0.013361923396587,0.007264939136803) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.128337413072586,0.009310307912529,-0.097322210669518,-0.002317044883966,0.073485828936100,-0.022247822955251,0.016595382243395,0.109013959765434,0.163182780146599,0.173170581459999,-0.134839355945587,0.096667036414146,0.014068352989852,-0.014773180708289,-0.085216924548149,0.050563741475344) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.005954551510513,-0.080987207591534,-0.183791637420654,0.120469741523266,0.003605140605941,-0.099635496735573,0.060132451355457,-0.005884993355721,-0.068102799355984,0.007575728464872,-0.012497521936893,0.075783535838127,-0.037686213850975,-0.111148767173290,0.240821003913879,-0.093284338712692) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.032987870275974,0.005756832193583,-0.034036844968796,-0.029883390292525,-0.023938126862049,0.034296613186598,-0.029338270425797,0.039663247764111,-0.053341496735811,-0.034959442913532,0.075627133250237,-0.039209026843309,-0.017044438049197,-0.001690847682767,0.024680871516466,-0.002041154541075) * MODEL2_texOff(vec2(0,1));
res += mat4(0.116756372153759,-0.040383763611317,-0.080554202198982,0.020930582657456,0.036597702652216,0.043705191463232,0.013967264443636,-0.023473545908928,-0.149482220411301,-0.065627671778202,0.055751860141754,-0.019075108692050,-0.051156431436539,0.023628246039152,-0.062846668064594,-0.076305463910103) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.043699800968170,-0.130866974592209,0.017509635537863,-0.000545673072338,0.056977558881044,0.189286649227142,0.078030392527580,-0.014351580291986,0.028887871652842,-0.013857265003026,0.111339755356312,0.130189418792725,-0.009882016107440,0.024261537939310,0.122440077364445,-0.021111270412803) * MODEL2_texOff(vec2(1,0));
res += mat4(0.156361997127533,0.037890408188105,-0.011965861544013,0.054924011230469,-0.095106147229671,-0.058538258075714,0.009889627806842,-0.011798631399870,-0.036315713077784,-0.001076161279343,0.106704920530319,-0.017070567235351,0.087646365165710,0.054918065667152,-0.041420456022024,-0.000766512937844) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.026134002953768,0.000951548281591,-0.071804910898209,-0.013628279790282,0.029552986845374,0.037873640656471,-0.017398685216904,0.001260004471987,0.024606462568045,-0.012698639184237,-0.157213881611824,-0.062070406973362,0.031457621604204,-0.001964230090380,0.180499270558357,-0.029056560248137) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.107976645231247,-0.019917769357562,-0.088942825794220,0.051688976585865,-0.050930414348841,0.014563883654773,0.012661891989410,-0.029167199507356,-0.018373994156718,0.051810994744301,0.115450695157051,0.004648132715374,-0.130605459213257,0.017692632973194,-0.126881092786789,0.044793903827667) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.087135396897793,0.023404967039824,-0.097997620701790,0.011485424824059,-0.027996797114611,0.060772694647312,-0.006480324547738,-0.009217243641615,0.095059692859650,0.029260883107781,-0.130732581019402,0.021385991945863,-0.010768949054182,-0.003787844674662,-0.003565791295841,0.026983756572008) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.079297795891762,0.070810496807098,-0.067037895321846,0.078551694750786,-0.005006918217987,-0.041077919304371,0.001029333099723,-0.031590092927217,0.054940894246101,-0.013870047405362,-0.006659117527306,-0.006984011735767,-0.174849629402161,0.121079288423061,-0.109736599028111,-0.345872998237610) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.045810479670763,-0.024423811584711,0.121609233319759,-0.068401701748371,0.061198115348816,0.031286817044020,-0.012456206604838,-0.011338746175170,-0.111318558454514,0.051309827715158,0.105124004185200,0.120496302843094,0.035970535129309,0.517134249210358,-0.095026843249798,-0.008471406996250) * MODEL3_texOff(vec2(0,0));
res += mat4(0.059030227363110,0.001213401206769,-0.038377746939659,0.056258525699377,-0.021728770807385,-0.040708515793085,-0.067536197602749,0.014350171200931,0.016430865973234,0.047620717436075,-0.090800002217293,0.078148908913136,-0.049215968698263,0.025781299918890,-0.013927112333477,-0.074727810919285) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.059447828680277,-0.100012287497520,0.019863950088620,0.000917654309887,-0.057533916085958,0.016800358891487,0.029884360730648,-0.005716171115637,0.061800140887499,0.031653936952353,-0.053800132125616,-0.000469609833090,-0.011403246782720,-0.126399338245392,0.072108916938305,-0.062527664005756) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.013380195945501,0.115744493901730,-0.010185458697379,-0.125456675887108,-0.009748153388500,0.022142751142383,-0.063023544847965,-0.034624785184860,0.080963000655174,-0.004347795620561,0.067402139306068,0.070297263562679,0.158497333526611,-0.525606870651245,0.025095814839005,0.073291435837746) * MODEL3_texOff(vec2(1,0));
res += mat4(0.034123647958040,-0.017486626282334,-0.001648215693422,0.014960046857595,-0.043107867240906,-0.042672928422689,-0.067243352532387,-0.027237223461270,-0.046123214066029,0.001127873430960,0.088740997016430,-0.113884903490543,0.126167461276054,-0.037232160568237,-0.013546671718359,0.054336857050657) * MODEL3_texOff(vec2(1,1));
res += mat4(0.042701814323664,0.012198315002024,-0.010420325212181,-0.067206032574177,0.021073725074530,0.007501943036914,0.039077494293451,-0.025278594344854,-0.073343195021152,0.006417842581868,0.096345715224743,-0.124843597412109,0.000030958599382,0.000547889154404,0.000027023532311,-0.000131507797050) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.033165387809277,0.051561623811722,-0.107186302542686,-0.051899176090956,-0.009766798466444,0.035452790558338,-0.044391658157110,0.000670401845127,-0.010350885801017,-0.039178423583508,0.005251721478999,0.007539476733655,0.000037396170228,-0.000264386122581,0.000017104828657,-0.000081900885561) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.021673172712326,0.007342973724008,0.016851956024766,-0.033597424626350,0.045973300933838,-0.002168989973143,-0.046727962791920,0.030156105756760,-0.035708706825972,-0.027152337133884,0.080539353191853,0.074233382940292,0.000024499871870,-0.000296669109957,0.000019112841983,-0.000025719855330) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.090463533997536,-0.010600733570755,0.002046320587397,-0.040935330092907,-0.032581262290478,0.199666306376457,0.097206152975559,-0.029510254040360,0.023303551599383,-0.050600353628397,0.129261568188667,0.049598626792431,0.000032742093026,0.001022202079184,0.000026579466066,-0.000056413278799) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.018651314079762,-0.038183886557817,-0.057786870747805,-0.138648554682732,-0.078888967633247,0.053662676364183,0.018193973228335,0.003350558457896,0.124694719910622,-0.025780616328120,0.115021899342537,0.090545892715454,0.000034132270230,0.000513177830726,0.000014771757378,-0.000029708362490) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.024112679064274,-0.049585774540901,-0.078157603740692,-0.049031179398298,-0.052555762231350,0.043725550174713,-0.013316417112947,0.021004116162658,0.111000888049603,-0.024948935955763,-0.016984485089779,-0.019011190161109,0.000029044627809,0.000269968557404,0.000012236345356,0.000009593622053) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.039033200591803,0.079886123538017,-0.027993675321341,0.007781196385622,-0.001587713253684,0.002777752932161,0.011955217458308,0.010491025634110,-0.099746316671371,0.044820409268141,0.118974007666111,-0.018671041354537,0.000029868808269,0.000970804307144,0.000026957246519,-0.000299210980302) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.184980958700180,0.069462709128857,-0.016284449025989,-0.051430102437735,-0.071910366415977,-0.026059128344059,-0.006670086178929,-0.034150648862123,-0.005960236769170,-0.036108020693064,-0.019480422139168,-0.036936596035957,0.000030746396078,0.000303104374325,0.000011595783690,-0.000168860366102) * MODEL4_texOff(vec2(1,0));
res += mat4(0.021190907806158,0.080396518111229,0.003933204337955,-0.077552571892738,0.041855059564114,-0.023441953584552,-0.042222846299410,-0.046874869614840,-0.061290416866541,-0.049465503543615,0.032049432396889,-0.006124099250883,0.000029154880394,0.000340578873875,0.000006169315384,-0.000112891815661) * MODEL4_texOff(vec2(1,1));
res += mat4(0.065421558916569,0.011112126521766,-0.072345115244389,-0.060118142515421,0.004539050627500,0.001367755583487,0.036396581679583,0.014538933522999,0.006948399823159,0.008339102379978,-0.005893503315747,0.000869804469403,-0.044380139559507,-0.064598158001900,0.033563155680895,0.037975270301104) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.020235804840922,-0.044757213443518,0.072394125163555,-0.025328312069178,-0.059498824179173,0.020621096715331,-0.030579464510083,0.014893848448992,-0.087412081658840,-0.030139580368996,-0.062158983200788,0.017468662932515,-0.009420787915587,-0.019630480557680,-0.045557525008917,0.024245420470834) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.012807404622436,-0.003223894629627,0.020337557420135,0.056845556944609,-0.032494965940714,0.172133237123489,0.003461276879534,0.029404506087303,-0.036399245262146,0.006998888682574,0.004703701008111,-0.001351428683847,-0.187429472804070,-0.043842591345310,0.017958557233214,-0.068553216755390) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.024856448173523,-0.015845689922571,0.126028284430504,0.063536874949932,-0.020802797749639,0.037101801484823,0.082787059247494,0.034384515136480,-0.002288584830239,0.274356752634048,-0.106773078441620,0.046642731875181,0.011241085827351,-0.013044306077063,-0.035481464117765,-0.014649287797511) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.002624175278470,-0.058030985295773,0.094593361020088,0.017599282786250,-0.003968896344304,-0.118823677301407,-0.006896484643221,0.015456922352314,-0.119558833539486,-0.184284910559654,-0.040752746164799,0.042911689728498,-0.152234092354774,0.133970648050308,-0.098411634564400,0.013684802688658) * MODEL5_texOff(vec2(0,0));
res += mat4(0.116946958005428,0.068434908986092,0.181030660867691,0.019042277708650,-0.096139088273048,-0.098610028624535,-0.001017357804812,0.018228083848953,-0.037166647613049,0.000534307619091,-0.003886534832418,-0.037426840513945,-0.212429821491241,0.099080331623554,0.024256419390440,0.001743832486682) * MODEL5_texOff(vec2(0,1));
res += mat4(0.045622292906046,0.164482310414314,0.019134508445859,0.002515324857086,-0.079202465713024,-0.049892894923687,0.092038750648499,-0.122425355017185,-0.003251066897064,-0.016689363867044,0.126979678869247,0.067785419523716,0.052965018898249,0.113082192838192,-0.006715605501086,0.141270279884338) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.051777645945549,-0.185656055808067,0.030876208096743,0.014134219847620,-0.032709624618292,-0.023145483806729,-0.057282112538815,-0.019622167572379,-0.009300486184657,0.191046282649040,-0.060037940740585,0.021781848743558,0.173005953431129,-0.057920426130295,0.022900234907866,0.055991161614656) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.005109399091452,-0.027495507150888,-0.081735514104366,0.081215247511864,0.036868765950203,-0.121131077408791,-0.074493497610092,-0.049702297896147,-0.024426316842437,-0.064000330865383,-0.019490685313940,0.002750437241048,0.105740763247013,-0.063232176005840,-0.001193859148771,0.024628663435578) * MODEL5_texOff(vec2(1,1));
res += mat4(0.096608407795429,-0.012124166823924,0.010878440923989,0.009214570745826,-0.084861733019352,0.004152615554631,-0.081683941185474,0.000081870544818,-0.004771120380610,-0.023912861943245,-0.078166097402573,0.010959616862237,0.059389438480139,0.011173578910530,0.026803296059370,-0.082972384989262) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.109912224113941,-0.125620782375336,-0.060997761785984,-0.024057528004050,-0.001947392709553,0.000182710879017,0.110784538090229,-0.019570972770452,-0.199665769934654,0.198333814740181,0.071918457746506,-0.001682373927906,0.093062594532967,0.023032860830426,-0.111803613603115,-0.006837466266006) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.019675243645906,-0.062747426331043,-0.022701259702444,-0.035547714680433,0.097009181976318,-0.009903903119266,0.015300326980650,-0.018883306533098,-0.066873989999294,0.037270922213793,0.170680642127991,0.070175282657146,0.016016151756048,-0.027481909841299,-0.015555636957288,0.045297097414732) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.329411387443542,-0.019992204383016,0.031464114785194,0.469558119773865,-0.011353239417076,-0.015868948772550,0.125333428382874,0.100807137787342,0.115628167986870,0.023427013307810,0.108402550220490,0.149482831358910,0.231026262044907,0.015831945464015,-0.084326565265656,0.022212836891413) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.266510963439941,-0.130735546350479,-0.019723946228623,0.177474603056908,0.031073378399014,-0.195238202810287,0.322612792253494,-0.047170747071505,0.131887570023537,-0.237843766808510,0.090495757758617,0.024679617956281,0.086926616728306,0.018200537189841,0.055801600217819,-0.010286058299243) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.164786607027054,-0.150248900055885,-0.050282780081034,0.004163690842688,0.133566439151764,-0.002737340051681,0.219696924090385,-0.004017565865070,0.113711893558502,-0.012829276733100,0.002658720593899,-0.080331347882748,0.008065457455814,-0.034477736800909,0.006812676321715,0.024611795321107) * MODEL6_texOff(vec2(0,1));
res += mat4(0.030915951356292,-0.006851204670966,-0.012351553887129,-0.076010659337044,-0.082227319478989,0.022758057340980,-0.045651927590370,-0.024691838771105,0.048230476677418,0.030806297436357,-0.109892614185810,-0.230604037642479,-0.011605850420892,-0.006854952778667,0.091398499906063,-0.057282697409391) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.080342523753643,0.385019809007645,-0.109294593334198,0.016762381419539,-0.065548226237297,0.214187368750572,0.112002395093441,0.003669305238873,0.058358486741781,0.056882899254560,-0.134974181652069,-0.036462370306253,0.157028645277023,0.016135156154633,-0.028010349720716,0.016802985221148) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.063993997871876,0.132679626345634,-0.057817008346319,0.062489643692970,-0.036032013595104,0.163402646780014,0.018910346552730,-0.021904757246375,-0.091184221208096,-0.054120164364576,0.019602736458182,-0.128469303250313,0.095081903040409,0.038424063473940,-0.032300371676683,-0.007471113931388) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.024604201316833,0.044986154884100,0.085870392620564,-0.002754297573119) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_HQ_3x_Photo] mapping 2_3

vec4 hook()
{
vec4 res = vec4(0.039526522159576,-0.011213049292564,-0.059770502150059,-0.111204817891121);
res += mat4(0.020494228228927,0.011856122873724,0.004449579399079,0.038512729108334,-0.081020690500736,0.056342422962189,0.065149679780006,-0.065853305160999,0.031552862375975,0.036589208990335,-0.058979265391827,0.063896551728249,-0.026067676022649,0.010152921080589,-0.026040460914373,0.016948824748397) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.082915380597115,0.090310201048851,-0.169512525200844,-0.022445611655712,-0.152144536375999,0.086943149566650,-0.012141373008490,-0.125376194715500,-0.074299290776253,0.019974308088422,0.062631808221340,-0.050562117248774,-0.007124255876988,-0.027790335938334,-0.068563424050808,-0.069765433669090) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.083539441227913,-0.015242348425090,-0.118888460099697,-0.085067756474018,0.030886352062225,0.033008631318808,-0.103747613728046,-0.040804810822010,-0.246661037206650,-0.017081998288631,-0.000930784095544,0.040940333157778,0.052977390587330,0.041182212531567,-0.049010731279850,-0.000715931470040) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.009008558467031,0.002183526987210,0.062780119478703,-0.077388316392899,0.004171083681285,-0.065816760063171,0.070268422365189,-0.158451393246651,0.039291638880968,-0.040217500180006,-0.063946083188057,-0.023887157440186,0.020743088796735,0.079161666333675,0.023765552788973,-0.009638749063015) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.011260667815804,-0.029058983549476,0.241644054651260,0.013677644543350,0.174473866820335,0.092026047408581,0.085694752633572,0.084713473916054,-0.005449992138892,-0.059994127601385,-0.149378612637520,-0.122373931109905,-0.093794323503971,0.083363331854343,0.104698099195957,-0.110581941902637) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.007697417400777,0.081111855804920,0.032288782298565,0.059912122786045,0.030310895293951,0.069597788155079,-0.002941502723843,0.021087234839797,-0.044317781925201,-0.003915351349860,0.057019356638193,-0.100900255143642,0.081404373049736,0.136282294988632,0.031764332205057,0.068690307438374) * MODEL1_texOff(vec2(0,1));
res += mat4(0.008179362863302,-0.062793113291264,-0.070874147117138,0.041299376636744,0.007995459251106,0.058153513818979,0.028240403160453,-0.057241372764111,0.009276013821363,0.031268797814846,-0.058194443583488,-0.014085928909481,-0.035558555275202,-0.015871381387115,-0.066485248506069,0.058664936572313) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.071801885962486,-0.000733666471206,-0.100543290376663,-0.045753534883261,0.059972766786814,-0.097902916371822,-0.010562962852418,0.034551188349724,-0.010725878179073,-0.062400382012129,-0.026247221976519,-0.055456593632698,-0.019804069772363,0.008797040209174,-0.092806510627270,0.003168593393639) * MODEL1_texOff(vec2(1,0));
res += mat4(0.075948722660542,-0.016788810491562,0.063475638628006,-0.027893681079149,-0.044265933334827,-0.052400864660740,0.000547131407075,-0.023673025891185,-0.031116694211960,-0.088130712509155,-0.019404876977205,0.012067976407707,-0.002918621059507,0.001956636086106,0.079035811126232,0.057773124426603) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.010955845005810,0.001582649070770,-0.079852588474751,-0.106872692704201,0.042082931846380,-0.018014365807176,-0.026206677779555,-0.020143369212747,0.060470566153526,0.182682409882545,0.057186953723431,-0.127977773547173,0.068935208022594,0.044647458940744,0.091146901249886,0.095782935619354) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.001377510954626,-0.023632317781448,-0.098940767347813,-0.018791167065501,0.178129434585571,0.013931418769062,-0.000116430877824,-0.025251464918256,-0.025597935542464,0.043380726128817,-0.009975160472095,-0.032611828297377,-0.037508405745029,-0.039000194519758,-0.055859513580799,0.090840436518192) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.025578359141946,0.058127984404564,-0.044562075287104,-0.009054216556251,-0.059605073183775,0.010171755217016,0.072294078767300,0.042349912226200,-0.013306562788785,-0.107834912836552,-0.012088839896023,0.014053116552532,0.004847386851907,0.092149600386620,-0.133661419153214,0.002907333197072) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.027904236689210,-0.204870626330376,-0.061734862625599,-0.068875424563885,0.004849473014474,-0.035319056361914,0.031501829624176,0.086662448942661,-0.018220391124487,-0.046520810574293,-0.119105182588100,-0.006338248029351,-0.032909415662289,0.080590240657330,-0.020745471119881,-0.026930416002870) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.015263506211340,0.148393824696541,0.009534497745335,-0.251149147748947,-0.107586383819580,0.059892319142818,0.003741151653230,0.002028179354966,-0.033573653548956,0.206367552280426,-0.058377634733915,0.067496784031391,-0.055936709046364,0.059146735817194,-0.091601803898811,-0.035428997129202) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.039873559027910,0.089097380638123,-0.031199548393488,-0.010646776296198,0.062985993921757,-0.008687657304108,-0.025137435644865,0.145890727639198,0.007210191804916,-0.196107298135757,-0.048955164849758,-0.055168040096760,-0.023709248751402,0.075668744742870,0.064307957887650,0.030051048845053) * MODEL2_texOff(vec2(0,1));
res += mat4(0.011366898193955,0.017677357420325,0.156233623623848,-0.103008307516575,-0.030302029103041,0.014328509569168,0.026047993451357,0.022429734468460,0.004210846498609,0.060960307717323,-0.149877861142159,-0.153690487146378,-0.036359328776598,0.016836982220411,-0.113370284438133,0.011786852963269) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.028836494311690,0.193026065826416,-0.188088580965996,-0.159511938691139,-0.035492952913046,-0.029981745406985,0.092466719448566,0.051609162241220,0.063597790896893,-0.075670138001442,0.128364220261574,0.094366349279881,0.050902292132378,0.032513134181499,-0.111191473901272,0.020855136215687) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.021481825038791,0.012873065657914,-0.120187386870384,-0.047852184623480,-0.014657909981906,0.019898390397429,0.035037674009800,0.065438173711300,0.013512198813260,-0.113673172891140,0.083561532199383,-0.064754746854305,0.020414883270860,0.050351385027170,-0.015745140612125,-0.047904264181852) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.127466052770615,0.070173256099224,0.045731596648693,-0.129925489425659,0.015927895903587,-0.026127476245165,0.021586429327726,-0.025791469961405,0.032172143459320,0.084003806114197,-0.010818010196090,-0.018271263688803,-0.120817609131336,0.036453284323215,0.089521475136280,-0.080503404140472) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.091693975031376,0.348574221134186,-0.172994419932365,-0.149563640356064,-0.043237857520580,-0.046790719032288,-0.000721394782886,-0.032361738383770,0.076509311795235,0.023864021524787,-0.091002576053143,0.080754227936268,-0.549467504024506,0.179498150944710,0.031217815354466,-0.045496538281441) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.065273642539978,0.109592273831367,-0.022545663639903,0.031804360449314,0.042026769369841,-0.007186930160969,0.014639674685895,-0.060730341821909,-0.015969734638929,0.027190441265702,0.007225668989122,0.019249090924859,-0.021237339824438,0.055701132863760,-0.078838475048542,-0.003250678069890) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.124202027916908,0.172946557402611,-0.106595896184444,0.411101907491684,-0.014753454364836,0.026589192450047,-0.007036252412945,-0.037009138613939,-0.007192122284323,-0.071793623268604,0.169885531067848,0.125140070915222,0.102026447653770,-0.072175078094006,-0.381297618150711,-0.088166765868664) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.044254295527935,-0.149880424141884,0.000822739850264,-0.004443762823939,0.012764617800713,0.053259223699570,0.017731623724103,-0.030081313103437,0.025950338691473,-0.079635746777058,-0.034591514617205,0.011066309176385,0.492538928985596,0.037600763142109,0.135672584176064,0.456246405839920) * MODEL3_texOff(vec2(0,0));
res += mat4(0.044976562261581,-0.016864422708750,0.027943208813667,-0.038480911403894,-0.005298262462020,-0.007223598659039,0.032602947205305,-0.001295534661040,0.070164784789085,0.043214224278927,-0.034949254244566,-0.008304104208946,0.019027981907129,-0.018593439832330,0.048685628920794,-0.048680264502764) * MODEL3_texOff(vec2(0,1));
res += mat4(0.002484445460141,-0.094013959169388,-0.012196959927678,0.087163753807545,-0.016540661454201,0.026082579046488,0.047838348895311,-0.029349306598306,0.066625460982323,-0.137804448604584,-0.192434728145599,0.068301841616631,-0.003534905379638,-0.035456702113152,0.249846965074539,-0.078754276037216) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.021017212420702,-0.020709725096822,-0.000650461646728,-0.072563312947750,0.036573410034180,0.071595780551434,0.055710610002279,-0.031172323971987,-0.005800315178931,-0.100862830877304,0.114336155354977,-0.051590092480183,0.086750991642475,-0.061700813472271,-0.180915921926498,-0.035697028040886) * MODEL3_texOff(vec2(1,0));
res += mat4(0.022908532992005,0.022654525935650,-0.070992007851601,-0.079340599477291,-0.049766745418310,0.078786037862301,0.016802443191409,0.028808608651161,-0.000630927388556,-0.144834280014038,-0.069157868623734,-0.012932057492435,0.004089355003089,0.005103200674057,0.059891331940889,-0.017963238060474) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.013842218555510,-0.100260980427265,-0.059885729104280,-0.070842519402504,-0.119740873575211,0.005502058193088,-0.053677611052990,0.006332525517792,-0.014647467061877,0.019159682095051,-0.025570062920451,0.026060506701469,-0.000288318813546,0.000180696559255,-0.000048451260227,0.000063577615947) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.054417405277491,-0.009818510152400,-0.031930647790432,-0.035798724740744,0.017117701470852,0.016915803775191,-0.022243598476052,0.081940129399300,-0.008232870139182,0.126060232520103,0.058602720499039,-0.064736284315586,-0.000360324687790,0.000121496275824,-0.000146490157931,0.000070298461651) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.023013712838292,-0.139173403382301,0.111035771667957,0.096499174833298,-0.007344765588641,-0.025962978601456,0.010721910744905,-0.039464090019464,-0.036384936422110,-0.025800053030252,0.090105570852757,0.002707828534767,-0.000989276682958,0.000140266580274,-0.000306892616209,0.000073776696809) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.056737616658211,0.003177810693160,0.112386822700500,-0.010395736433566,-0.274171024560928,0.111067101359367,0.067772425711155,0.010617964901030,-0.042775828391314,-0.049087576568127,0.149707734584808,-0.083971418440342,-0.000639560283162,0.000065704829467,0.000033106363844,0.000048976045946) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.034215640276670,0.152545019984245,-0.010409804061055,-0.137020587921143,-0.162552118301392,0.114142879843712,0.043438903987408,-0.015568731352687,0.027553617954254,0.048115581274033,0.020776700228453,0.091340735554695,-0.000103653743281,-0.000053557545471,-0.000087798842287,0.000170393395820) * MODEL4_texOff(vec2(0,0));
res += mat4(0.045921850949526,-0.053814973682165,0.118774831295013,-0.199715301394463,-0.220579832792282,0.147952154278755,0.001307322410867,-0.058836113661528,0.030147524550557,0.020404178649187,0.008407582528889,-0.022137094289064,-0.000706659688149,0.000004449822427,-0.000310389033984,0.000147995961015) * MODEL4_texOff(vec2(0,1));
res += mat4(0.035864762961864,0.102644905447960,-0.051350060850382,0.028575653210282,0.092213466763496,0.010469918139279,-0.036587122827768,0.124551616609097,-0.006743616424501,-0.019062453880906,0.136955603957176,0.006058953702450,-0.001242019352503,-0.000125571939861,-0.000041390740080,0.000065568456193) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.041009988635778,0.056071765720844,0.063804969191551,0.038682021200657,0.191968038678169,-0.031976487487555,-0.047569632530212,0.018042722716928,-0.045535895973444,-0.000765346107073,0.069403693079948,-0.076655104756355,-0.000563666282687,-0.000256306782831,-0.000287656817818,0.000204105279408) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.035807937383652,0.031648170202971,-0.083818949759007,-0.044010769575834,0.208267509937286,0.023202132433653,-0.040107931941748,0.074520930647850,-0.042642299085855,0.024143230170012,0.113368473947048,-0.043036088347435,-0.000868513190653,-0.000240296591073,-0.000429417937994,0.000189632308320) * MODEL4_texOff(vec2(1,1));
res += mat4(0.016151824966073,0.027711827307940,0.021076969802380,0.010175026021898,-0.000877497368492,-0.133240029215813,-0.003621196607128,0.000330116221448,0.002555598272011,0.074220523238182,-0.016858197748661,0.030389308929443,0.056643620133400,-0.075625054538250,0.052092786878347,-0.171860694885254) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.045772947371006,-0.109130650758743,0.015472600236535,0.044628433883190,-0.019472589716315,-0.119481779634953,-0.117299027740955,-0.069904901087284,0.264599472284317,-0.151416465640068,0.047837588936090,0.034568179398775,-0.088037945330143,0.199253752827644,0.031102435663342,-0.016908420249820) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.034278281033039,0.061411462724209,-0.034758437424898,-0.032544851303101,0.085055500268936,0.124998822808266,0.082122020423412,0.376956850290298,0.039494968950748,-0.121792040765285,0.013571978546679,0.030591582879424,-0.054583396762609,0.040379747748375,0.115445025265217,0.071131534874439) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.115162715315819,-0.084209725260735,0.095846332609653,0.080888308584690,0.027675382792950,-0.130340889096260,0.090135127305984,-0.041342958807945,-0.032256331294775,0.261548638343811,0.010061589069664,-0.002353258430958,-0.104963019490242,-0.093804799020290,-0.170758053660393,-0.230016455054283) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.176688298583031,-0.062285915017128,-0.194538384675980,-0.102066345512867,0.039989758282900,-0.021997366100550,0.066534973680973,0.095693930983543,-0.161571130156517,-0.021496161818504,-0.040131583809853,-0.001067894510925,0.083480864763260,0.155909597873688,-0.075006671249866,0.414181053638458) * MODEL5_texOff(vec2(0,0));
res += mat4(0.008660306222737,0.072367608547211,0.040124833583832,0.007953860796988,0.094343461096287,0.011647997424006,-0.100572071969509,0.055233284831047,0.000927482265979,0.029646145179868,0.007158802356571,-0.070814892649651,-0.008363361470401,-0.120466619729996,-0.051704067736864,0.045373737812042) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.010804510675371,-0.035854119807482,0.075095728039742,0.054453335702419,-0.000263523863396,-0.060613453388214,-0.146545782685280,-0.084276951849461,0.061868861317635,0.096652396023273,0.109822519123554,0.050325881689787,0.000025000001187,-0.075959824025631,0.212645560503006,0.012223778292537) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.004399885889143,0.179955154657364,-0.063617430627346,0.080669134855270,0.015226786956191,0.013740872032940,-0.073061898350716,-0.077276773750782,-0.088514275848866,-0.018531987443566,0.018905634060502,0.021139327436686,-0.044771619141102,-0.015879478305578,0.130662485957146,-0.156041935086250) * MODEL5_texOff(vec2(1,0));
res += mat4(0.000299055362120,-0.032471012324095,-0.112811505794525,0.052975080907345,-0.038094893097878,-0.029148416593671,-0.031712953001261,-0.121580176055431,-0.026861207559705,-0.019108459353447,-0.005331499502063,-0.029233982786536,0.017484851181507,-0.055663831532001,0.076789475977421,-0.005680347792804) * MODEL5_texOff(vec2(1,1));
res += mat4(0.002147615421563,-0.012735259719193,-0.041507318615913,-0.059123955667019,-0.015075828880072,0.073067210614681,0.007310472428799,-0.022354083135724,0.003424298483878,-0.107162006199360,-0.110476724803448,-0.291786134243011,0.046472154557705,0.008035316132009,0.162188589572906,0.065128728747368) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.336306303739548,-0.073693983256817,-0.005639391485602,-0.079030252993107,0.173947840929031,-0.075869128108025,0.055595628917217,-0.113568745553493,0.111338727176189,0.042486831545830,-0.025418978184462,0.242130443453789,-0.006816164124757,-0.033037289977074,-0.154312834143639,0.095222026109695) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.128071069717407,0.076351165771484,-0.040609657764435,0.033631205558777,-0.046227615326643,-0.009101639501750,-0.001186220557429,-0.007814790122211,0.020447591319680,-0.103742651641369,0.052384078502655,0.005473846103996,0.078479275107384,-0.023948905989528,-0.049810118973255,-0.085638500750065) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.004577894695103,-0.083290368318558,0.271012246608734,0.074490934610367,-0.009051623754203,-0.005659290123731,0.050483655184507,0.033920276910067,0.018269667401910,-0.028578840196133,0.155090898275375,0.032877594232559,0.058436896651983,-0.063889637589455,0.001960672438145,0.037317231297493) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.286403030157089,0.219063505530357,-0.108432561159134,-0.253286302089691,-0.232988074421883,-0.148868039250374,-0.112235479056835,-0.166241586208344,-0.074265547096729,-0.104146502912045,0.020780745893717,-0.118951708078384,-0.040267668664455,-0.035967454314232,0.038087539374828,0.020835015922785) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.133437857031822,0.116387762129307,-0.109581097960472,-0.006822937168181,-0.034110687673092,-0.151838347315788,-0.072478465735912,0.018508229404688,0.004779420793056,0.071383461356163,-0.113601475954056,0.027249226346612,-0.026810452342033,-0.058476060628891,0.047319918870926,-0.036934748291969) * MODEL6_texOff(vec2(0,1));
res += mat4(0.007957924157381,0.040405925363302,-0.282079607248306,0.202113434672356,0.034495014697313,-0.034029982984066,-0.046694334596395,-0.010629940778017,-0.008307160809636,-0.095130264759064,-0.019813450053334,0.029962293803692,0.025911455973983,0.036632347851992,0.177592739462852,0.044464487582445) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.001854734611697,-0.085853353142738,0.026030058041215,0.001038581947796,0.062828831374645,0.081158362329006,0.039742633700371,-0.064360328018665,0.030363149940968,-0.124975502490997,0.039161853492260,-0.009009752422571,-0.011704280041158,0.002559636021033,-0.059962023049593,0.112416476011276) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.013840049505234,-0.015828618779778,0.164700880646706,-0.035787355154753,0.040622573345900,-0.009365075267851,-0.024811929091811,0.044771514832973,-0.016042565926909,-0.133049130439758,-0.035510610789061,-0.020070398226380,-0.020152736455202,-0.089219830930233,-0.019493548199534,0.011068416759372) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.138063997030258,0.132000029087067,-0.059691596776247,0.008649121038616) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_HQ_3x_Photo] mapping 2_4

vec4 hook()
{
vec4 res = vec4(-0.111764222383499,-0.059546504169703,-0.065732210874557,-0.307604610919952);
res += mat4(-0.001007382292300,-0.067751392722130,0.031812012195587,0.070307128131390,0.053930629044771,-0.039850100874901,0.070073552429676,-0.004467646591365,0.022021375596523,-0.011604328639805,-0.230389356613159,0.003893466200680,-0.095827281475067,0.152313426136971,0.042302396148443,-0.036186005920172) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.088172011077404,0.202254533767700,0.178515717387199,-0.164253234863281,-0.009262555278838,0.005383471492678,0.022755293175578,-0.034871816635132,0.005152405705303,-0.143355369567871,-0.067720048129559,0.004204570781440,0.110533460974693,0.030578879639506,0.025844553485513,-0.166588813066483) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.073630616068840,0.153465166687965,0.166587308049202,0.216719791293144,0.059767026454210,-0.011975259520113,0.070262439548969,0.021706361323595,-0.009278208017349,-0.136360451579094,0.128258302807808,-0.161146208643913,-0.125382959842682,0.024646986275911,0.093744069337845,-0.116721332073212) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.066687621176243,-0.143831521272659,0.163227543234825,-0.179190799593925,-0.065607242286205,0.136660084128380,0.037630930542946,-0.046727143228054,0.018825659528375,0.013243686407804,-0.126047998666763,-0.032809719443321,0.025060065090656,-0.156629458069801,-0.044104352593422,-0.091085612773895) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.054423805326223,-0.107927232980728,0.164994955062866,0.049579344689846,0.050749495625496,0.068264245986938,-0.145124271512032,-0.030286390334368,-0.016741525381804,-0.152633056044579,-0.013851210474968,-0.041327089071274,0.073705568909645,0.087847329676151,0.115259677171707,0.099127836525440) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.035915445536375,0.081115573644638,-0.225163042545319,0.000841475091875,-0.057090055197477,0.159851968288422,-0.138930022716522,-0.050079837441444,0.001288980944082,-0.061921026557684,0.033043384552002,-0.026888491585851,-0.119048498570919,0.106254160404205,-0.050608862191439,-0.112189874053001) * MODEL1_texOff(vec2(0,1));
res += mat4(0.011358462274075,-0.072082467377186,-0.030978899449110,-0.019609436392784,0.022789556533098,-0.028569234535098,-0.032126735895872,0.040148023515940,-0.019174724817276,0.134222596883774,0.032416071742773,-0.019799230620265,0.008689780719578,-0.017656709998846,-0.121701300144196,-0.041455224156380) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.136409044265747,-0.098318524658680,-0.096454583108425,0.084623560309410,-0.071232765913010,0.008512226864696,-0.018099008128047,-0.036858733743429,-0.038648527115583,-0.067465357482433,-0.106736317276955,-0.104599654674530,-0.005334900226444,0.022860361263156,-0.030203871428967,-0.035962484776974) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.173351436853409,0.095488049089909,-0.164451897144318,-0.050987605005503,-0.013422673568130,-0.012664781883359,0.036650832742453,-0.082096047699451,0.004519328474998,-0.120347797870636,-0.045939244329929,0.002005153335631,-0.021569292992353,0.146351337432861,0.000117829215014,0.017689965665340) * MODEL1_texOff(vec2(1,1));
res += mat4(0.010577793233097,-0.258271098136902,0.108873493969440,0.015088354237378,-0.025389233604074,0.034083928912878,0.062818452715874,-0.020408237352967,0.021349409595132,-0.037012353539467,0.010522436350584,0.002615160075948,-0.088655434548855,0.007447176147252,0.068292796611786,0.107135809957981) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.002574329730123,0.072612039744854,0.004105032887310,-0.146426677703857,-0.129879370331764,-0.084378071129322,0.062461599707603,0.073263555765152,-0.049240142107010,-0.104528456926346,0.086776070296764,0.031028617173433,0.107043921947479,-0.256245821714401,-0.115475185215473,-0.085862688720226) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.008582026697695,0.109921209514141,0.017883708700538,-0.063864544034004,-0.002280594781041,-0.032350033521652,-0.024349356070161,0.049272179603577,-0.072412833571434,0.046722024679184,0.024712445214391,-0.066702790558338,-0.075467079877853,0.031762667000294,0.068257302045822,-0.081121496856213) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.059697821736336,-0.150079458951950,0.015706600621343,0.001925031188875,0.018629973754287,-0.068092860281467,-0.003956634551287,0.041618298739195,-0.046081177890301,0.061849784106016,0.055509690195322,0.028386544436216,0.013758619315922,-0.015498588792980,0.042399145662785,-0.040535841137171) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.040508631616831,0.128203198313713,0.011231590062380,0.065450236201286,-0.153588145971298,0.010445997118950,-0.039543598890305,0.047435585409403,-0.093556746840477,0.027994992211461,-0.090320661664009,-0.056245781481266,0.020547887310386,0.127695903182030,-0.101565085351467,0.059923529624939) * MODEL2_texOff(vec2(0,0));
res += mat4(0.044782850891352,-0.387818902730942,-0.022279836237431,-0.054379660636187,-0.003643087344244,-0.056146256625652,-0.040857043117285,0.055915448814631,-0.043543267995119,0.053312405943871,-0.040051482617855,0.046089537441730,-0.079454116523266,0.137299954891205,0.054835293442011,0.031446624547243) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.046415045857430,-0.216709494590759,0.113011680543423,-0.021409891545773,-0.001146959839389,-0.004470061045140,-0.041445937007666,-0.070237196981907,0.100555740296841,-0.027951354160905,-0.172330081462860,0.012794722802937,-0.021740237250924,-0.066045604646206,-0.051392260938883,0.135416999459267) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.058326285332441,0.042896669358015,-0.109537072479725,-0.077159993350506,-0.024204676970840,-0.068554043769836,-0.087595276534557,-0.008627492003143,-0.115550689399242,0.094483412802219,0.144527494907379,-0.066063217818737,-0.100446395576000,-0.087265394628048,0.127315148711205,0.057281751185656) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.051714699715376,-0.283463031053543,-0.104050025343895,-0.047654014080763,0.002406166400760,-0.039683189243078,-0.013888312503695,0.027732208371162,0.033960893750191,0.122640974819660,0.069387152791023,-0.020294524729252,0.041247177869081,-0.003487817011774,0.105027139186859,0.046606242656708) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.009527929127216,-0.137587830424309,0.027036223560572,-0.034592758864164,-0.005049577448517,-0.009936591610312,-0.067433856427670,-0.032978132367134,-0.145325019955635,0.077068388462067,0.117840752005577,-0.062660917639732,0.103841304779053,0.033501457422972,-0.235081046819687,0.042387481778860) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.005260457284749,0.080220602452755,0.208302780985832,0.014007804915309,0.048351552337408,0.045314852148294,0.009920008480549,0.075306795537472,0.043836992233992,0.082694403827190,0.017663771286607,0.067065499722958,-0.074452161788940,-0.149341881275177,0.018341617658734,-0.078908041119576) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.029190802946687,-0.118054710328579,-0.024877702817321,-0.021615028381348,-0.110145591199398,-0.026476131752133,-0.005571086890996,-0.004190298262984,-0.143389523029327,0.138398662209511,-0.104117132723331,-0.035150900483131,-0.022148242220283,0.174027726054192,0.124851092696190,-0.029816990718246) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.006229922641069,-0.007161471527070,0.143933758139610,-0.025999020785093,-0.038387507200241,-0.059733513742685,-0.062651529908180,-0.087561033666134,-0.132756158709526,-0.102359168231487,0.059039432555437,-0.072200730443001,0.129581272602081,0.153742998838425,0.125781387090683,-0.264350622892380) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.203600138425827,0.117189221084118,-0.174135267734528,0.169981226325035,0.009746361523867,-0.076031893491745,-0.015014826320112,-0.002981018507853,0.090772576630116,-0.110488571226597,-0.089071497321129,0.027616187930107,-0.321180135011673,-0.138560831546783,0.206477016210556,-0.093197651207447) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.053854588419199,0.099840961396694,-0.024493461474776,0.008366628549993,-0.090848334133625,-0.000583983899560,0.033543687313795,0.003567965002730,0.012970007024705,0.036796376109123,0.175902396440506,0.001862690318376,0.135724827647209,-0.081258371472359,-0.097426921129227,0.026666617020965) * MODEL3_texOff(vec2(0,1));
res += mat4(0.099357031285763,0.078766554594040,-0.194101825356483,-0.001575457979925,-0.074012406170368,0.043347250670195,-0.024776771664619,-0.051186639815569,-0.122195832431316,-0.023302087560296,-0.123115845024586,-0.067265070974827,0.031443066895008,-0.006936777383089,0.106909558176994,0.091015413403511) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.117467306554317,-0.161860540509224,0.053524270653725,0.100181490182877,0.046903230249882,-0.062094535678625,0.026710974052548,0.016141816973686,0.148749306797981,-0.219976738095284,-0.013748942874372,-0.060209825634956,-0.098133221268654,0.132078170776367,-0.107640385627747,-0.151565343141556) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.019708523526788,-0.012056589126587,0.145874843001366,-0.030474757775664,-0.038149911910295,-0.019233150407672,-0.020960338413715,0.020906051620841,-0.048676796257496,0.052628967911005,-0.081701725721359,-0.002012671437114,0.119224749505520,0.002869370626286,-0.133344069123268,0.033095713704824) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.006242187693715,-0.058716751635075,0.041899252682924,0.000231283018366,-0.028019985184073,0.000664536899421,-0.021862177178264,-0.043737053871155,-0.063111931085587,0.112052358686924,0.162744909524918,-0.014274565503001,-0.000197615256184,0.000036653338611,0.000035713299440,0.000317221769365) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.116025395691395,0.004558150190860,-0.077884308993816,-0.012803959660232,0.050165057182312,-0.051782999187708,-0.027896372601390,-0.108378529548645,0.059610363095999,0.125221177935600,-0.168191745877266,0.089135512709618,-0.000206793105463,-0.000010685052985,0.000035251567169,0.000279870204395) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.049992963671684,-0.120253130793571,-0.143966153264046,0.035757653415203,-0.003017724025995,0.064003616571426,0.036830332130194,-0.008342242799699,-0.068580977618694,0.122185111045837,-0.230575844645500,-0.126459762454033,-0.000159564035130,0.000103812148154,-0.000022584379622,0.000292496813927) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.049330368638039,-0.027326283976436,-0.070646047592163,0.143196344375610,0.016780480742455,0.034950796514750,0.001897530397400,-0.058381680399179,0.111909590661526,-0.022093418985605,-0.139166027307510,-0.085007332265377,-0.000189193087863,-0.000088719723863,0.000086189480498,0.000078869248682) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.023115457966924,0.035069290548563,0.078366346657276,-0.005847723223269,0.157563820481300,0.007276694756001,-0.067837372422218,-0.139840647578239,0.094196386635303,0.055498778820038,0.139342784881592,-0.008252079598606,-0.000211381309782,-0.000118734518765,0.000103266094811,0.000102934980532) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.009492804296315,0.036340426653624,-0.024447763338685,0.057403691112995,-0.101581476628780,0.021683916449547,-0.010749897919595,-0.039767324924469,-0.113667912781239,0.211803957819939,-0.001101771369576,0.007680602837354,-0.000159666291438,-0.000057929020841,0.000021001769710,0.000077254728239) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.158633098006248,-0.035103160887957,0.016939712688327,0.147761076688766,0.099048323929310,0.014558337628841,0.009776541031897,-0.000541581073776,-0.052548751235008,0.005101643502712,0.137898147106171,-0.005353058688343,-0.000192943029106,-0.000108012471173,0.000109962551505,0.000201250222744) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.000006043665508,-0.041654642671347,-0.100455589592457,0.000988868763670,0.132570341229439,0.002823610790074,-0.062354363501072,-0.007969635538757,0.066562965512276,0.069822587072849,-0.073223136365414,-0.048340208828449,-0.000205987962545,-0.000135204027174,0.000170588726178,0.000185826211236) * MODEL4_texOff(vec2(1,0));
res += mat4(0.023191658779979,-0.015572816133499,-0.051174465566874,-0.018174421042204,0.117317155003548,-0.069269537925720,-0.071117378771305,0.069782629609108,-0.054702147841454,-0.040973756462336,-0.167459577322006,-0.052300736308098,-0.000156283364049,-0.000086746273155,0.000091109031928,0.000139378462336) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.007371508050710,0.055678602308035,0.115177005529404,0.003206183202565,-0.146345287561417,-0.148498848080635,-0.116993710398674,0.063455551862717,-0.008475180715322,0.019511878490448,-0.027124980464578,0.006684527732432,0.007967419922352,0.090315587818623,-0.067189827561378,0.080071680247784) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.016331244260073,0.028148235753179,-0.118288949131966,0.016758920624852,0.019522681832314,0.046148080378771,-0.023694291710854,-0.022528218105435,0.269185692071915,-0.063219323754311,0.053670730441809,-0.029423819854856,-0.095999941229820,-0.093734353780746,-0.035496041178703,-0.026924565434456) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.024352341890335,-0.112526513636112,-0.093721598386765,-0.047710239887238,0.029061175882816,0.011411863379180,0.000964801176451,0.028718899935484,0.143110156059265,-0.109308719635010,-0.024141615256667,0.003065959783271,0.101270891726017,0.113329201936722,0.084141276776791,0.007107757497579) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.186550423502922,-0.101881831884384,0.094049543142319,-0.020616190508008,-0.012447476387024,-0.071932874619961,-0.113548092544079,0.099310189485550,-0.066679500043392,0.076707646250725,-0.020696418359876,0.012517378665507,0.111970447003841,0.101315028965473,0.069498851895332,0.094742313027382) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.162465557456017,0.027987515553832,-0.069899633526802,0.151557520031929,0.004274663981050,-0.003984293900430,0.120500639081001,0.073624394834042,0.045087087899446,0.151730254292488,0.087924137711525,0.128505706787109,-0.026047563180327,-0.066219389438629,0.115230426192284,0.014332643710077) * MODEL5_texOff(vec2(0,0));
res += mat4(0.014536205679178,-0.102461971342564,0.090527288615704,0.049544256180525,0.015585327520967,0.019485788419843,-0.024946834892035,0.017332702875137,-0.003024210687727,0.055704127997160,0.052925281226635,0.037255421280861,0.202790319919586,-0.074722006917000,0.005160606466234,0.033797517418861) * MODEL5_texOff(vec2(0,1));
res += mat4(0.006104889325798,-0.079069651663303,0.083637475967407,-0.059756342321634,0.002095979871228,-0.031539712101221,-0.129685878753662,-0.047396175563335,0.021912835538387,0.036147069185972,0.072858013212681,-0.119927138090134,0.058129355311394,-0.037181094288826,0.131225422024727,0.078201249241829) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.014953408390284,0.071723714470863,-0.016981711611152,-0.088605031371117,-0.054071601480246,0.000936375930905,0.088458463549614,0.026057306677103,0.114745512604713,-0.080072142183781,-0.088316708803177,-0.036753803491592,-0.064442321658134,-0.026533629745245,-0.143275365233421,0.001929986872710) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.072666913270950,0.068082287907600,0.040132980793715,-0.018507156521082,-0.052970629185438,-0.021386859938502,0.065432213246822,0.070946730673313,-0.071762874722481,0.005567164160311,-0.041499469429255,-0.029193544760346,0.187255382537842,-0.039347387850285,-0.102642498910427,0.029600623995066) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.029379935935140,-0.134839147329330,0.120654702186584,-0.101104252040386,-0.007675787899643,0.016961423680186,0.000245094852289,0.018564492464066,0.081148773431778,-0.157259255647659,0.031510248780251,-0.038323070853949,-0.080306090414524,-0.018591303378344,0.014300634153187,0.059731710702181) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.170065373182297,0.243355035781860,0.008630780503154,-0.034411620348692,0.151902377605438,0.028100239112973,0.099889375269413,-0.011735495179892,-0.153781428933144,-0.035918425768614,0.079733423888683,-0.000031888648664,0.029411036521196,0.157875582575798,-0.010155045427382,-0.160375043749809) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.005786012392491,0.043934818357229,-0.197945415973663,0.117768183350563,-0.150711312890053,-0.023202940821648,0.005606710910797,-0.060626480728388,-0.076504908502102,0.028197309002280,-0.110744431614876,-0.024773903191090,-0.051319614052773,0.024022012948990,-0.059441037476063,0.080953747034073) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.265052646398544,-0.131319329142570,0.010141412727535,0.100768722593784,-0.082610912621021,0.002367551205680,-0.003058635396883,0.028493609279394,-0.021799845620990,-0.079527527093887,0.126670777797699,0.175053671002388,0.067596219480038,-0.031779605895281,-0.199447140097618,-0.014813655987382) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.171249449253082,0.124602586030960,-0.286153525114059,0.013360893353820,0.106560900807381,0.175214618444443,-0.029779931530356,0.149203926324844,0.018742678686976,0.082832016050816,-0.112676315009594,0.061767861247063,0.081608153879642,0.177175194025040,0.057114977389574,-0.004666093736887) * MODEL6_texOff(vec2(0,0));
res += mat4(0.119230404496193,0.084899827837944,0.103502914309502,-0.119187161326408,-0.087367385625839,0.047388397157192,0.051031190901995,-0.095306158065796,0.014367807656527,-0.053204834461212,-0.015631474554539,-0.025052890181541,0.042270500212908,-0.007458733394742,-0.149295791983604,-0.141631916165352) * MODEL6_texOff(vec2(0,1));
res += mat4(0.067345082759857,0.012865792959929,-0.170522600412369,-0.097391530871391,0.032882034778595,0.046014025807381,-0.060828570276499,-0.040564063936472,0.033402264118195,-0.083472177386284,-0.068815700709820,-0.045345325022936,0.048182383179665,0.025462597608566,-0.023718394339085,-0.030747396871448) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.056854154914618,-0.249448508024216,0.235858410596848,-0.070050992071629,0.006432306952775,-0.008841833099723,0.006771395914257,-0.108637616038322,-0.053552206605673,0.017128253355622,-0.021004673093557,-0.027741560712457,0.009554163552821,0.127930343151093,0.054774880409241,-0.054800622165203) * MODEL6_texOff(vec2(1,0));
res += mat4(0.008216837421060,0.054619636386633,0.075322538614273,0.011415432207286,-0.031835563480854,0.022597571834922,0.081792183220387,-0.034637123346329,-0.080018743872643,-0.056597512215376,0.043270897120237,0.015165608376265,-0.124755099415779,0.132787317037582,-0.063690252602100,-0.021329499781132) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.079330585896969,-0.013875046744943,-0.168940007686615,0.186432391405106) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_HQ_3x_Photo] mapping 2_5

vec4 hook()
{
vec4 res = vec4(-0.165502294898033,-0.134141236543655,-0.098014682531357,0.053900364786386);
res += mat4(-0.124779865145683,-0.011050966568291,-0.147655948996544,0.077000342309475,-0.019250340759754,0.042440365999937,-0.023391164839268,0.029596455395222,-0.170991331338882,0.019237540662289,0.045769009739161,0.004098974168301,-0.115574896335602,-0.180131077766418,0.103804424405098,0.046919681131840) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.156471580266953,-0.250854521989822,0.166645571589470,0.023887297138572,-0.027111332863569,-0.027340963482857,-0.198169320821762,-0.016548167914152,-0.045897815376520,-0.211885556578636,-0.114531584084034,-0.006052292883396,-0.066497027873993,-0.046648327261209,-0.085251905024052,0.178087174892426) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.080021373927593,0.082754358649254,-0.076337434351444,0.062435265630484,-0.072547271847725,-0.098535224795341,-0.027071489021182,0.040449641644955,-0.077862598001957,-0.290951430797577,-0.068587645888329,-0.027204304933548,-0.138701826334000,-0.045462053269148,-0.173386916518211,-0.010202886536717) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.030574962496758,-0.048778172582388,-0.000153646455146,-0.141572758555412,0.001243349164724,0.027771074324846,0.022767946124077,0.170680731534958,-0.069418109953403,0.003876124508679,0.023239152505994,0.119222655892372,-0.030858239158988,-0.006530855316669,-0.102320909500122,-0.023511167615652) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.058026615530252,-0.107148058712482,-0.020067771896720,-0.136832058429718,0.207512378692627,0.031008677557111,0.001196309691295,-0.118670962750912,-0.121888138353825,-0.114050775766373,-0.043756503611803,-0.028993487358093,-0.075648143887520,-0.223871067166328,0.018410533666611,-0.039098557084799) * MODEL1_texOff(vec2(0,0));
res += mat4(0.074882097542286,0.182229906320572,0.028198903426528,-0.064732499420643,0.068008281290531,0.220148950815201,0.186913996934891,-0.017026396468282,-0.042773686349392,-0.101413540542126,-0.122539602220058,0.017692195251584,-0.081334024667740,0.050272040069103,-0.069900043308735,-0.002266410738230) * MODEL1_texOff(vec2(0,1));
res += mat4(0.002060496946797,-0.205843597650528,-0.027555998414755,0.035155870020390,-0.099993258714676,0.070331014692783,-0.007778039202094,0.062236029654741,-0.050327811390162,0.020954722538590,0.056768730282784,-0.002219246933237,-0.031730104237795,-0.135258048772812,0.006701134610921,0.013247460126877) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.036788035184145,-0.094556204974651,0.014318550936878,0.132563769817352,0.181507185101509,-0.057958535850048,-0.076072007417679,-0.051569215953350,-0.049929425120354,-0.282870471477509,-0.120068080723286,0.008909149095416,0.023536372929811,-0.172661527991295,0.025256095454097,0.003655134234577) * MODEL1_texOff(vec2(1,0));
res += mat4(0.077959015965462,0.183451667428017,0.048949413001537,-0.026028797030449,-0.086382672190666,0.020827164873481,0.089471116662025,-0.015357803553343,0.002473790664226,-0.164097651839256,0.045150637626648,0.011311510577798,-0.046458441764116,-0.094043567776680,0.011568088084459,0.000297110585961) * MODEL1_texOff(vec2(1,1));
res += mat4(0.061355315148830,-0.176617205142975,0.034432902932167,0.020484142005444,-0.037469424307346,-0.035351578146219,0.027415115386248,0.015859637409449,0.044253677129745,0.205915555357933,0.185562103986740,0.028425639495254,-0.075708761811256,-0.096759483218193,0.113270282745361,-0.016809720546007) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.095600821077824,0.101288206875324,-0.015808712691069,0.015162434428930,0.008108312264085,0.032461676746607,0.088045515120029,-0.236843854188919,0.021266287192702,0.075121432542801,-0.057814985513687,-0.038323588669300,0.239799141883850,0.092540509998798,0.019617896527052,0.057260457426310) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.067126981914043,0.029931979253888,-0.059841893613338,0.006880353670567,0.048331338912249,0.020657515153289,0.034366805106401,-0.022641874849796,-0.051477376371622,-0.191876813769341,-0.079450085759163,0.035298246890306,0.103676527738571,-0.021415214985609,-0.098374530673027,-0.065278150141239) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.095927961170673,0.039681967347860,0.212231442332268,-0.044675510376692,-0.079872407019138,-0.016697051003575,0.056668069213629,-0.041468098759651,-0.023117044940591,0.144680425524712,-0.181542277336121,0.040340032428503,0.071272358298302,0.102363824844360,-0.012854835018516,-0.067503303289413) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.006026309914887,0.075936086475849,-0.065955325961113,-0.010839168913662,-0.038448706269264,-0.034402720630169,0.096151247620583,-0.413887917995453,-0.005684384610504,-0.094706587493420,-0.121642202138901,0.000836093036924,-0.059286806732416,-0.000385965104215,-0.130381047725677,0.000798978260718) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.024287233129144,0.067482002079487,-0.109464004635811,0.010928353294730,-0.050114415585995,-0.000084488550783,0.018628284335136,-0.023684173822403,0.002383513376117,0.059323295950890,-0.046042222529650,0.014322201721370,-0.003113548969850,-0.009997528977692,-0.026642562821507,-0.016795480623841) * MODEL2_texOff(vec2(0,1));
res += mat4(0.135321050882339,0.260687053203583,-0.160084262490273,-0.069692187011242,-0.008566754870117,-0.009050359949470,-0.076510697603226,-0.055122364312410,0.183282807469368,-0.021474385634065,-0.134901627898216,0.074341580271721,0.013761581853032,-0.009584532119334,0.051419533789158,0.022971831262112) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.001977960811928,-0.059364423155785,-0.131510719656944,0.106509074568748,0.071187809109688,0.054970268160105,0.043137758970261,-0.130513951182365,-0.027754846960306,-0.049287151545286,-0.110658548772335,-0.101843833923340,0.054520480334759,0.065235808491707,0.029144732281566,-0.001211633323692) * MODEL2_texOff(vec2(1,0));
res += mat4(0.042488783597946,-0.036517623811960,-0.054911397397518,0.010692589916289,-0.054328799247742,-0.010839624330401,0.023231049999595,0.024173328652978,-0.045649826526642,0.223714441061020,-0.046174332499504,0.030403621494770,-0.040184330195189,0.105411395430565,0.086476527154446,0.017922699451447) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.034808892756701,-0.058870945125818,0.094925433397293,0.008224778808653,-0.107734046876431,-0.029855351895094,0.014205312356353,0.000964148668572,-0.046100791543722,-0.061861552298069,0.340415686368942,0.000332139810780,-0.115215972065926,-0.015338122844696,-0.272328943014145,0.071750864386559) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.023564631119370,0.108452185988426,0.040365450084209,0.006106469780207,-0.041282877326012,-0.018733995035291,0.025153743103147,0.044484708458185,-0.028179431334138,-0.016271708533168,0.009070163592696,0.029839538037777,0.031305886805058,-0.173993438482285,-0.039623510092497,-0.021685505285859) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.017306596040726,-0.068588159978390,-0.085475206375122,0.002391464775428,0.047581270337105,0.009779540821910,0.032589655369520,0.024898592382669,0.022823408246040,-0.195724874734879,-0.048783421516418,-0.020974721759558,0.008339865133166,0.096144683659077,0.035184938460588,-0.012774528004229) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.260909199714661,-0.080714285373688,0.057988967746496,-0.287930399179459,-0.071726322174072,-0.009783357381821,-0.048514511436224,-0.039265941828489,0.015859106555581,-0.131271004676819,0.059845276176929,-0.287027180194855,0.053778145462275,-0.015623930841684,-0.084511704742908,0.424752235412598) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.024854678660631,0.195212289690971,0.012293644249439,0.164129361510277,-0.038935657590628,-0.012044585309923,0.028671110048890,-0.012542232871056,0.026980511844158,0.142412379384041,0.059167098253965,0.120292715728283,0.069686688482761,-0.164135441184044,0.152000904083252,-0.495911329984665) * MODEL3_texOff(vec2(0,0));
res += mat4(0.007882384583354,-0.159740880131721,0.001360428053886,-0.069593779742718,0.021662889048457,0.001746859867126,0.024718040600419,-0.017856078222394,0.098559826612473,-0.014591114595532,-0.059338640421629,-0.066211134195328,-0.129094436764717,0.070495761930943,0.058957841247320,0.043820839375257) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.029712799936533,0.178758114576340,-0.055819392204285,-0.094503253698349,-0.063330054283142,-0.118967548012733,0.026364631950855,-0.013263332657516,-0.035024870187044,-0.008444452658296,-0.040948800742626,-0.167881473898888,-0.056010719388723,-0.061982244253159,0.003174370154738,0.076624490320683) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.074411422014236,-0.178674131631851,-0.031340572983027,0.026215247809887,-0.058794882148504,-0.085414618253708,0.014610177837312,0.034817144274712,-0.019786063581705,0.034941304475069,-0.017429083585739,-0.039024215191603,-0.039888203144073,0.267981380224228,0.080611996352673,-0.086096137762070) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.013789739459753,-0.009528112597764,0.051756214350462,0.006681297440082,0.022869536653161,-0.012525432743132,0.022116424515843,0.018047032877803,-0.034789718687534,-0.012938182801008,0.067113786935806,0.007299254648387,0.069249011576176,-0.106100641191006,0.023313526064157,-0.005782847292721) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.008467414416373,-0.051681518554688,0.146223828196526,-0.012095291167498,-0.032572191208601,-0.089352384209633,-0.217186436057091,0.097745195031166,0.078160271048546,-0.016448445618153,0.174295172095299,-0.072943754494190,-0.000038625636080,-0.000032501833630,0.000014590556020,-0.000138782328577) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.112274497747421,-0.036881640553474,-0.104785040020943,0.014322745613754,0.053066890686750,0.062609225511551,0.115381605923176,-0.050192955881357,0.088194698095322,-0.094253040850163,-0.008502887561917,-0.008246587589383,-0.000040930550313,-0.000018658325644,0.000098631768196,0.000267781491857) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.056473881006241,-0.203546822071075,-0.074798308312893,-0.046837430447340,-0.041488412767649,-0.000166154568433,0.026176409795880,-0.027374304831028,0.048581801354885,-0.048660397529602,0.021420927718282,-0.037546727806330,-0.000050749014918,-0.000019660392354,0.000090059198556,0.000677523203194) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.002725693164393,0.074055708944798,-0.023048765957355,-0.113174319267273,0.053552702069283,-0.152722820639610,-0.247687995433807,0.134545847773552,0.168268054723740,-0.110046088695526,0.050073899328709,0.184827446937561,-0.000020460491214,-0.000032090782042,0.000087545071437,-0.000724821467884) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.020643370226026,0.152922138571739,-0.120474651455879,0.099571526050568,0.231899634003639,0.087328217923641,0.058660451322794,-0.140577733516693,0.126772895455360,0.145137965679169,-0.004111120942980,0.070469625294209,-0.000024282508093,-0.000019369908841,0.000327940739226,-0.000409823172959) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.109519764780998,0.037185635417700,-0.018582142889500,0.027356309816241,0.054174985736609,-0.036406200379133,-0.101528353989124,0.032799616456032,0.061003502458334,-0.004628879018128,-0.059345692396164,0.029870698228478,-0.000041051316657,-0.000021333553377,0.000348656874849,-0.000153785222210) * MODEL4_texOff(vec2(0,1));
res += mat4(0.043932631611824,-0.034337949007750,0.038511920720339,-0.015571966767311,-0.003207117086276,0.008975105360150,0.006202903110534,-0.031320311129093,0.092406861484051,-0.019636606797576,-0.012123882770538,-0.071443252265453,-0.000020388353732,-0.000034323886211,-0.000287647475488,-0.001216743490659) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.068597078323364,-0.077719189226627,-0.154922172427177,-0.066028334200382,-0.009241792373359,0.208628103137016,0.273990660905838,-0.034020110964775,0.109317250549793,0.021935191005468,-0.042150408029556,-0.017713364213705,-0.000022227988666,-0.000028906586522,-0.000236262188992,-0.001264556194656) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.047748588025570,0.111995086073875,0.006612749770284,0.081780299544334,-0.043993778526783,0.037126969546080,0.084826566278934,-0.016411665827036,0.065767563879490,-0.009967974387109,-0.074996143579483,-0.045771375298500,-0.000036412540794,-0.000022528236514,-0.000089782610303,-0.000867141527124) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.040147554129362,0.033633336424828,0.201911926269531,-0.082909211516380,0.052224468439817,0.144711598753929,0.079041555523872,-0.005843481980264,0.033253721892834,-0.016716964542866,0.019009165465832,-0.047715857625008,-0.017144156619906,0.093768954277039,0.023482259362936,-0.024196311831474) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.116708151996136,-0.020486053079367,-0.040473759174347,0.004981060046703,0.082328177988529,-0.031325090676546,-0.002180791227147,0.270308554172516,-0.013501466251910,0.055118445307016,0.012050939723849,-0.103552021086216,0.052016321569681,-0.109360694885254,0.001446435111575,-0.011941231787205) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.001455056248233,-0.005671522580087,-0.038497120141983,0.010990027338266,0.032570302486420,-0.176432788372040,0.012536437250674,-0.134884506464005,0.045426920056343,0.072389177978039,-0.014562249183655,-0.016109351068735,-0.047600675374269,-0.040686070919037,0.038801964372396,-0.055187404155731) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.126191735267639,-0.043618720024824,0.024266680702567,-0.123321503400803,0.010416070930660,0.076101198792458,0.013089302927256,-0.044286441057920,-0.039499871432781,-0.011796327307820,0.096214629709721,-0.107392832636833,0.079919718205929,-0.142246633768082,0.110358826816082,0.436474680900574) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.205594256520271,0.081475310027599,0.071199074387550,0.107757858932018,-0.027932060882449,-0.139654859900475,0.080119363963604,0.052273757755756,-0.109625369310379,0.080479338765144,-0.077683292329311,0.213280111551285,0.399475485086441,-0.140468493103981,-0.045637909322977,-0.105291582643986) * MODEL5_texOff(vec2(0,0));
res += mat4(0.035158440470695,-0.131736621260643,-0.040190406143665,0.031017787754536,0.186737582087517,-0.070474490523338,-0.136962696909904,-0.025586398318410,-0.023241229355335,-0.104897268116474,-0.017303381115198,-0.012671888805926,0.241457730531693,0.130694866180420,-0.008137654513121,-0.135973066091537) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.011664946563542,-0.037047877907753,-0.058731358498335,0.025231799110770,-0.135900676250458,0.000609543407336,0.041086483746767,-0.018071558326483,0.050733171403408,0.009616598486900,0.012843072414398,-0.084744453430176,-0.009720706380904,-0.047421965748072,-0.172117486596107,-0.076435007154942) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.081470772624016,0.048433329910040,-0.035655520856380,0.019254023209214,-0.104152567684650,-0.119446918368340,0.014873798005283,0.073653094470501,-0.057001311331987,-0.165936976671219,-0.071902208030224,0.054291304200888,-0.052692662924528,0.108530893921852,-0.006539575289935,0.067449331283569) * MODEL5_texOff(vec2(1,0));
res += mat4(0.056022722274065,-0.098279684782028,-0.033496327698231,-0.087543159723282,-0.097024679183960,0.005629160441458,-0.003790539689362,-0.017800478264689,-0.054448850452900,0.050729211419821,-0.061896584928036,-0.007682504132390,-0.117238610982895,0.091672547161579,-0.017651382833719,0.058650434017181) * MODEL5_texOff(vec2(1,1));
res += mat4(0.169137507677078,-0.065269269049168,0.456296414136887,-0.063027136027813,-0.091157533228397,0.027261521667242,0.071634732186794,0.044571615755558,-0.004314394202083,-0.059134557843208,0.066501885652542,0.362568646669388,0.016754623502493,-0.025507478043437,0.275426059961319,-0.134706586599350) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.034571375697851,0.071753941476345,-0.029574947431684,0.121319189667702,0.209563687443733,0.033503830432892,-0.072795219719410,-0.030553529039025,-0.187847211956978,-0.138248294591904,0.046529937535524,-0.312905639410019,-0.030715636909008,-0.150683909654617,0.237708836793900,-0.030202873051167) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.120022661983967,-0.114760242402554,-0.021462591364980,-0.018611777573824,-0.047688219696283,-0.035660881549120,-0.032088156789541,0.017653603106737,-0.014966473914683,0.159275680780411,-0.007375387474895,0.001196709228680,0.050196763128042,-0.019173307344317,-0.058733150362968,-0.036899141967297) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.015671726316214,0.115813374519348,-0.108065165579319,-0.352946579456329,0.029652934521437,0.030242282897234,-0.100051648914814,-0.000423627323471,0.020984536036849,-0.050524178892374,-0.049449905753136,-0.053543094545603,0.140243813395500,0.131496831774712,-0.050635926425457,0.062450461089611) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.140720278024673,-0.082638405263424,-0.053288623690605,0.149965286254883,0.049852352589369,0.015258161351085,-0.302923381328583,-0.156711131334305,0.070901826024055,0.148551106452942,0.003135982202366,0.086856126785278,0.013299613259733,0.075228616595268,-0.058893546462059,-0.127713486552238) * MODEL6_texOff(vec2(0,0));
res += mat4(0.026090342551470,-0.172429174184799,-0.029866753146052,0.157319352030754,0.105519838631153,0.012566469609737,0.025985468178988,0.137033581733704,0.176709309220314,-0.040788684040308,-0.006556627340615,0.024395063519478,0.039002172648907,0.128165006637573,0.032396614551544,0.065208740532398) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.027466164901853,0.064661622047424,-0.049936089664698,-0.023315832018852,0.155141726136208,-0.011287562549114,-0.024789936840534,-0.021710626780987,0.057652954012156,-0.003265285864472,-0.016333926469088,0.040630720555782,0.024706644937396,0.043143697082996,-0.137134075164795,0.035389054566622) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.006860409863293,-0.217866718769073,-0.140274301171303,0.041420143097639,0.413856118917465,-0.163199797272682,-0.183430537581444,-0.038170743733644,0.127592816948891,0.018350232392550,0.004507613368332,0.026228539645672,-0.025655949488282,-0.027016755193472,-0.150773018598557,0.045984622091055) * MODEL6_texOff(vec2(1,0));
res += mat4(0.069419041275978,-0.039213903248310,-0.055962350219488,0.011088580824435,-0.023000616580248,0.023787366226315,0.025346424430609,0.012556161731482,-0.034882217645645,0.060190692543983,0.017625477164984,-0.033866278827190,0.088513091206551,-0.143119007349014,-0.101376280188560,0.003476676996797) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.066126562654972,0.006180093158036,-0.110049374401569,0.007180896122009) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_HQ_3x_Photo] mapping 2_6

vec4 hook()
{
vec4 res = vec4(-0.231259301304817,-0.585992693901062,-0.034356236457825,-0.120435744524002);
res += mat4(-0.088998541235924,-0.081564299762249,0.028216190636158,-0.001059017609805,-0.008642631582916,0.022110786288977,-0.022918203845620,-0.047489132732153,0.023926179856062,-0.017582528293133,-0.095404230058193,-0.003417217405513,0.050463870167732,0.011496591381729,-0.079513892531395,-0.007540990132838) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.045816693454981,0.020952623337507,0.085260845720768,0.008944437839091,0.142847970128059,0.030215915292501,-0.062938973307610,-0.003540823934600,0.038499165326357,0.123623460531235,-0.105655938386917,-0.046244923025370,-0.080070912837982,-0.049906820058823,-0.104933612048626,-0.048957772552967) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.105698257684708,0.007911022752523,0.116108700633049,0.038104113191366,-0.057075321674347,0.019892085343599,-0.064132720232010,0.014495662413538,-0.065911598503590,0.078984737396240,0.036252196878195,0.023126687854528,-0.311332374811172,0.046753380447626,-0.089363135397434,0.028636967763305) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.083274960517883,-0.055392589420080,-0.164495974779129,-0.102798774838448,0.047954369336367,-0.045588720589876,0.045216597616673,0.061075046658516,-0.044562399387360,0.123640783131123,-0.050623346120119,0.008438259363174,-0.010728782042861,-0.105819575488567,-0.084599509835243,0.012089525349438) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.003134527243674,-0.047706324607134,-0.069868057966232,-0.002043377375230,0.129436284303665,0.008530114777386,0.092418722808361,0.154590606689453,0.005434619262815,0.231906145811081,-0.016228085383773,-0.023789405822754,-0.071415536105633,0.043959613889456,-0.032892271876335,-0.063618913292885) * MODEL1_texOff(vec2(0,0));
res += mat4(0.056457087397575,0.089104443788528,-0.021042359992862,-0.007978362031281,0.057592630386353,0.025808323174715,-0.095639348030090,-0.006216051056981,0.057945884764194,0.150492548942566,0.023717999458313,0.044558040797710,-0.050466991961002,0.181528374552727,0.042696110904217,0.030793938785791) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.048025980591774,0.100593335926533,-0.038287431001663,0.035558667033911,0.023753775283694,-0.048715699464083,0.035507064312696,0.055647253990173,0.001631986815482,0.018278168514371,-0.046012826263905,0.033314362168312,0.055292259901762,-0.042411997914314,-0.048637449741364,-0.026543295010924) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.004671461880207,0.088190183043480,0.009206761606038,-0.056296564638615,0.056574657559395,-0.026167552918196,-0.018161863088608,0.007909723557532,0.003442914457992,-0.002108740853146,-0.002935645636171,-0.056212496012449,-0.015382972545922,0.034281078726053,-0.089928135275841,-0.017213169485331) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.042345225811005,-0.055846720933914,-0.092245168983936,-0.073579959571362,0.050578009337187,0.011578799225390,-0.019442528486252,-0.046927060931921,-0.118573531508446,-0.019985999912024,-0.000062453735154,-0.024732438847423,0.022522326558828,-0.005187154747546,-0.030032936483622,-0.027831567451358) * MODEL1_texOff(vec2(1,1));
res += mat4(0.021003622561693,0.009386941790581,0.017314968630672,0.008766056038439,-0.225453734397888,-0.017723772674799,0.045251708477736,-0.089311055839062,0.046833265572786,0.096628434956074,0.042964756488800,-0.068416506052017,0.157961696386337,-0.018756795674562,-0.052271407097578,0.001657718792558) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.058979872614145,0.046129617840052,0.080447457730770,-0.074809886515141,-0.062187492847443,0.026188697665930,0.048736073076725,-0.071572430431843,0.009573963470757,0.048391312360764,-0.125049263238907,-0.015488751232624,0.074957504868507,-0.142210036516190,-0.083058536052704,-0.001316496054642) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.114661186933517,0.023872928693891,0.019499704241753,-0.058253735303879,0.026824668049812,-0.077247984707355,0.087088823318481,-0.092045694589615,0.030070759356022,0.005584346596152,0.056377757340670,0.063047222793102,0.142540588974953,-0.029226304963231,0.022118609398603,0.059191714972258) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.085574083030224,0.038394387811422,0.011712942272425,-0.080882400274277,-0.003488768124953,-0.005875980481505,-0.032660506665707,-0.039558030664921,-0.114897876977921,-0.203050583600998,-0.005518760532141,0.053008284419775,-0.009622106328607,-0.003714911639690,-0.079423792660236,-0.029363626614213) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.176935493946075,0.082527264952660,0.093311600387096,-0.038366675376892,-0.181492999196053,0.051587667316198,-0.131888002157211,-0.027843102812767,-0.032836157828569,0.038368783891201,-0.146164044737816,0.048686672002077,0.095852330327034,0.075683884322643,-0.182804211974144,-0.159421980381012) * MODEL2_texOff(vec2(0,0));
res += mat4(0.131058305501938,-0.004228888545185,0.048976883292198,0.034849174320698,-0.021157838404179,-0.010511935688555,-0.008414478972554,-0.068532325327396,-0.065325982868671,-0.082435369491577,0.034939300268888,0.086203932762146,0.024207735434175,0.084539175033569,0.119989462196827,0.180883064866066) * MODEL2_texOff(vec2(0,1));
res += mat4(0.222274959087372,0.002507011871785,-0.049937661737204,-0.092053420841694,-0.002280817599967,0.036515239626169,0.023129116743803,0.023292275145650,-0.092069633305073,0.060123547911644,-0.081323422491550,-0.002825977513567,0.039249189198017,-0.032623503357172,-0.090367995202541,0.003540551522747) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.145807251334190,-0.063047386705875,-0.069756336510181,0.084373757243156,-0.071182131767273,0.026652418076992,-0.021944852545857,-0.150785237550735,0.043044906109571,-0.086163632571697,-0.107235208153725,0.062648214399815,-0.117892988026142,-0.062187805771828,0.008917872793972,-0.043883144855499) * MODEL2_texOff(vec2(1,0));
res += mat4(0.075762696564198,-0.029560593888164,0.028871407732368,0.145562559366226,-0.019513327628374,-0.041796896606684,0.090085633099079,0.009599196724594,-0.016634829342365,-0.134114906191826,0.161178022623062,0.023619685322046,-0.012536227703094,0.047773648053408,0.026217130944133,-0.020496893674135) * MODEL2_texOff(vec2(1,1));
res += mat4(0.051164548844099,0.055148452520370,0.091141737997532,-0.031030874699354,-0.010895678773522,-0.025046117603779,-0.007466517854482,0.034529052674770,0.043807163834572,0.099091798067093,-0.056508086621761,-0.072663113474846,0.042044069617987,0.053027827292681,0.048206936568022,0.000145331374370) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.024337211623788,0.004674458876252,0.077102050185204,-0.085733026266098,0.059584178030491,0.026916608214378,-0.068776160478592,-0.086641959846020,0.015279731713235,-0.133940592408180,0.131641328334808,-0.048236411064863,0.135590106248856,0.121156632900238,-0.115705095231533,0.032710805535316) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.065787404775620,-0.074273973703384,0.021700233221054,-0.148681551218033,-0.029874490574002,-0.053340971469879,-0.081122927367687,0.004450900480151,-0.098722390830517,0.038321599364281,0.079947791993618,0.025286063551903,0.040144998580217,0.048508685082197,0.002208404708654,-0.021729666739702) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.098256990313530,0.050885204225779,-0.110929876565933,0.151877224445343,-0.023299332708120,-0.048669237643480,-0.112824358046055,0.003314476925880,0.039857480674982,0.101751729846001,-0.142807856202126,0.100044220685959,-0.020928967744112,-0.008311808109283,0.008836049586535,0.071012385189533) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.196197211742401,0.100420020520687,0.183836385607719,-0.183082684874535,0.014851856976748,0.019686007872224,-0.069798968732357,-0.081223711371422,0.002054719254375,0.015655901283026,-0.183054059743881,-0.027965819463134,-0.102458424866199,-0.152544245123863,0.172663688659668,0.213770747184753) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.139119550585747,-0.112477749586105,-0.005310008302331,-0.037738174200058,-0.095433674752712,-0.020750727504492,-0.081581428647041,0.034562684595585,0.073173500597477,0.004829212557524,-0.029977187514305,-0.167810648679733,0.061318203806877,-0.029738020151854,-0.255599886178970,-0.279419064521790) * MODEL3_texOff(vec2(0,1));
res += mat4(0.121505521237850,0.037259031087160,-0.018029324710369,-0.042758315801620,-0.014875330962241,-0.051251839846373,-0.057779781520367,-0.065464675426483,-0.031881626695395,0.128772899508476,-0.104992799460888,0.047057449817657,0.055680219084024,-0.128138363361359,0.026072544977069,-0.027064120396972) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.025790581479669,0.062285274267197,-0.120417244732380,-0.160209551453590,-0.014156781136990,-0.052405178546906,-0.094132475554943,-0.033309690654278,0.061073247343302,-0.041740212589502,-0.114487804472446,-0.090879194438457,0.088186889886856,-0.175139769911766,-0.040670916438103,0.100206293165684) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.048854585736990,-0.045131515711546,-0.041040513664484,-0.017906982451677,-0.107608996331692,-0.005411469377577,0.002183164237067,0.033191397786140,-0.008022041991353,0.011229041032493,0.024612519890070,0.093282304704189,0.002063431544229,-0.023525279015303,0.083404131233692,-0.049459200352430) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.105209432542324,-0.040474049746990,0.095888875424862,-0.042581297457218,0.001192104886286,0.092317625880241,-0.086595021188259,0.111099250614643,0.063708789646626,-0.031339589506388,-0.019485061988235,0.067923277616501,-0.000013671487977,-0.000049076017604,-0.000020051780666,-0.000001568961238) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.090797543525696,-0.092962346971035,0.101869724690914,-0.100318737328053,0.051227882504463,0.000030731993320,0.042035471647978,-0.099111892282963,0.098607152700424,0.041729301214218,-0.005768499337137,0.048463124781847,-0.000003364068334,-0.000054440297390,-0.000158820446813,0.000026432278901) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.049671772867441,0.051168143749237,0.036683026701212,0.005730313248932,-0.003000472439453,-0.015032887458801,0.022748123854399,-0.060221761465073,0.106444180011749,0.004336305428296,0.023974118754268,0.007629377301782,0.000002859299457,-0.000047255198297,0.000172259795363,0.000033406380680) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.040758505463600,-0.003765109227970,0.134354487061501,0.056368447840214,-0.013148135505617,0.083266295492649,0.117368981242180,0.137398406863213,0.028087623417377,-0.048126548528671,-0.102901801466942,-0.072702929377556,-0.000012510712622,-0.000041923034587,-0.000129569438286,-0.000000597022108) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.079890884459019,-0.102477744221687,0.034818261861801,0.023777868598700,0.138194888830185,0.021710645407438,0.043199382722378,-0.184701576828957,0.075859777629375,0.022074639797211,-0.074024029076099,0.117118790745735,-0.000006089592716,-0.000052863098972,-0.000081190919445,0.000038343863707) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.073636889457703,-0.024370148777962,0.051113728433847,-0.079996444284916,0.035023037344217,0.048849195241928,-0.107685208320618,0.060800064355135,0.148202255368233,-0.039807904511690,0.203101336956024,0.085733331739902,-0.000001111096140,-0.000044870692363,0.000053534808103,0.000040994189476) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.052280623465776,0.044249698519707,0.078769840300083,-0.058081015944481,0.061715938150883,0.043495357036591,0.061180509626865,-0.024648502469063,0.054007425904274,0.102019168436527,-0.032031517475843,-0.011764047667384,-0.000010277912224,-0.000053778316214,-0.000582199427299,-0.000004592528057) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.102002821862698,-0.012695241719484,0.112375169992447,0.016408862546086,0.003201955463737,-0.050368838012218,0.006655361503363,-0.193761408329010,-0.021296961233020,0.026481729000807,0.007664661388844,-0.034411117434502,-0.000004220791197,-0.000056702923757,-0.000511222053319,0.000024194863727) * MODEL4_texOff(vec2(1,0));
res += mat4(0.018913483247161,0.056586049497128,0.118168488144875,-0.031366970390081,-0.031678035855293,-0.072518005967140,-0.020591173321009,0.008975983597338,-0.011543635278940,-0.034325823187828,0.171815812587738,0.049870662391186,0.000000932582452,-0.000047617344535,-0.000397441588575,0.000035661694710) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.041030112653971,0.035881340503693,-0.014154585078359,0.004285291768610,-0.098461963236332,-0.086376875638962,0.075463011860847,0.011016690172255,0.085880219936371,-0.001148327020928,-0.010834957472980,0.013379896059632,-0.034604504704475,0.080699391663074,0.072996295988560,0.009842826984823) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.212934285402298,0.012441344559193,0.049573522061110,0.017686266452074,0.032557159662247,0.031232200562954,0.060055315494537,0.116303689777851,-0.062010370194912,-0.044077415019274,0.236620143055916,0.270600438117981,0.044028356671333,-0.009962975978851,0.146065279841423,0.010681048035622) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.042746361345053,0.080989919602871,-0.023509979248047,-0.060758396983147,-0.013491370715201,0.023250404745340,-0.198256269097328,0.034156717360020,-0.117697320878506,-0.040445372462273,-0.027408422902226,0.034823041409254,-0.117426864802837,-0.025415901094675,0.135812804102898,-0.021551689133048) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.129148051142693,-0.176612004637718,-0.031809676438570,0.029783237725496,-0.000631565344520,-0.026662120595574,-0.047089058905840,-0.019008014351130,-0.007225395645946,0.118062891066074,-0.032120965421200,0.013094427064061,0.165147274732590,0.042647156864405,-0.063590690493584,-0.002222143812105) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.568090915679932,-0.019605720415711,-0.120849266648293,-0.059357162564993,0.085117816925049,-0.043805390596390,-0.088338792324066,0.024849314242601,-0.128955796360970,0.148153096437454,-0.081169031560421,0.043714676052332,-0.104092001914978,0.001593562425114,-0.286539852619171,0.305940479040146) * MODEL5_texOff(vec2(0,0));
res += mat4(0.002046119188890,0.056342698633671,0.084538266062737,0.088438861072063,-0.018050331622362,0.009690065868199,-0.069341503083706,0.060957841575146,-0.003016577800736,0.041754104197025,0.127452313899994,-0.050287336111069,-0.040209293365479,0.002197565743700,-0.074851483106613,-0.010438639670610) * MODEL5_texOff(vec2(0,1));
res += mat4(0.093161597847939,0.094430603086948,-0.103923194110394,0.121528916060925,0.061242021620274,0.029239304363728,0.001037720590830,-0.016317436471581,0.021000033244491,0.033876232802868,0.065202936530113,-0.037033554166555,0.047970522195101,0.056888539344072,0.076034203171730,-0.090795978903770) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.063261903822422,0.035340066999197,0.039297278970480,0.169626012444496,-0.119980700314045,-0.108150519430637,-0.003701953217387,-0.074884556233883,-0.043554689735174,0.105466485023499,0.173476293683052,0.080115109682083,0.213595315814018,0.039306946098804,0.069101482629776,-0.034649860113859) * MODEL5_texOff(vec2(1,0));
res += mat4(0.018968941643834,-0.027057873085141,0.179971873760223,0.042723722755909,-0.113387249410152,0.047799244523048,-0.048472620546818,0.101089812815189,0.003620482981205,-0.041351418942213,-0.050033260136843,-0.034407608211040,0.083067275583744,0.009121603332460,0.091966658830643,0.083427019417286) * MODEL5_texOff(vec2(1,1));
res += mat4(0.034977793693542,-0.075529560446739,-0.001120497123338,-0.070980496704578,-0.012577026151121,-0.027100834995508,0.014892130158842,-0.002038284437731,0.053869280964136,0.102108173072338,-0.119913026690483,0.039759419858456,0.159866929054260,0.006488204002380,0.032485015690327,-0.048654071986675) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.037522625178099,-0.071755692362785,-0.086789794266224,0.036565780639648,-0.036808680742979,-0.144286766648293,-0.010362982749939,0.062184188514948,-0.005078397691250,0.059758186340332,-0.098288886249065,0.120752222836018,0.143248394131660,0.019439097493887,-0.095157265663147,0.174074128270149) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.214545667171478,-0.026714731007814,0.014888752251863,0.113366745412350,-0.063269883394241,0.009944052435458,-0.013355206698179,0.014846818521619,-0.153963640332222,0.016340764239430,-0.011300203390419,-0.035392194986343,0.174437373876572,0.000603082589805,-0.087722681462765,0.056657038629055) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.164133071899414,-0.122278504073620,-0.007728764321655,-0.096621118485928,0.053215246647596,-0.032221768051386,0.017523689195514,0.038344427943230,0.110853485763073,0.129956617951393,-0.086783312261105,0.066945925354958,0.107669778168201,-0.026000689715147,0.083509914577007,-0.034980501979589) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.001150230411440,0.332985013723373,-0.086654491722584,-0.129873797297478,0.282888770103455,0.104577250778675,0.056350126862526,-0.052571788430214,0.129522278904915,0.046594332903624,0.057836841791868,-0.112479098141193,-0.056522339582443,0.119294375181198,0.129236429929733,-0.051348321139812) * MODEL6_texOff(vec2(0,0));
res += mat4(0.013142138719559,0.046378020197153,-0.029444066807628,0.182106643915176,-0.030633604153991,-0.170164257287979,0.107577070593834,0.123542301356792,-0.003006597748026,0.000263150752289,-0.062900684773922,-0.038679316639900,0.086406901478767,-0.076860420405865,0.039068553596735,0.116384752094746) * MODEL6_texOff(vec2(0,1));
res += mat4(0.093477748334408,0.017749670892954,-0.090148091316223,-0.003368876175955,-0.049903910607100,0.051109272986650,0.007734491024166,0.003250970970839,0.046451374888420,0.067748479545116,-0.032040465623140,-0.021354036405683,0.077699355781078,-0.046074222773314,0.083720676600933,0.070601493120193) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.118342362344265,0.275636255741119,-0.077175043523312,-0.115123383700848,-0.079586818814278,0.019966090098023,0.107272118330002,0.089600600302219,-0.045224178582430,0.011371081694961,-0.085325330495834,-0.015112838707864,0.112545862793922,0.024263316765428,0.172044843435287,0.079827979207039) * MODEL6_texOff(vec2(1,0));
res += mat4(0.013857207261026,0.100927494466305,0.002391809364781,0.041201561689377,0.033846218138933,0.020672706887126,-0.012880717404187,0.025220759212971,0.087477952241898,0.022997776046395,-0.040259625762701,0.012061139568686,0.156619518995285,-0.086185917258263,0.110149115324020,-0.002685505896807) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.043955296278000,0.000020770325136,0.604385018348694,-0.039986126124859) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL1
//!DESC [AiUpscale_HQ_3x_Photo] mapping 3_1

vec4 hook()
{
vec4 res = vec4(-0.194128841161728,0.166112333536148,0.185362026095390,-0.154293179512024);
res += mat4(-0.120910033583641,-0.044597998261452,-0.004118370357901,-0.091917917132378,-0.162014454603195,-0.027990221977234,-0.097657173871994,-0.050026416778564,-0.132702812552452,0.004817957989872,-0.001295156776905,0.088527560234070,-0.011860711500049,-0.065356202423573,0.162304505705833,-0.036069579422474) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.032135847955942,-0.027654118835926,-0.212290048599243,0.080519385635853,-0.095077805221081,0.005257304757833,-0.154919415712357,-0.066443830728531,-0.092419095337391,0.152720287442207,0.037544537335634,0.025186337530613,-0.064134702086449,-0.056583266705275,-0.005090441554785,-0.139416784048080) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.025559198111296,0.017907844856381,-0.197147578001022,-0.140822574496269,-0.000264959584456,0.026141192764044,0.064702056348324,-0.000904312240891,-0.166844546794891,0.141182020306587,-0.020538771525025,-0.066734097898006,0.013947322964668,-0.052081465721130,0.050056226551533,-0.025088550522923) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.006825702730566,-0.035455536097288,-0.176818028092384,0.074604779481888,0.035414371639490,0.071079358458519,-0.266647338867188,0.072063505649567,-0.073806986212730,-0.028607999905944,-0.003527583321556,0.119348891079426,0.030117306858301,0.161660209298134,-0.158061593770981,0.090739332139492) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.096529677510262,0.066125102341175,-0.094851501286030,0.000597269390710,0.252491235733032,-0.010161924175918,-0.147107735276222,0.004307965282351,-0.090803176164627,0.041481360793114,0.114800900220871,0.081336423754692,0.095126025378704,-0.051922783255577,-0.019644482061267,0.062519811093807) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.076812602579594,-0.034374203532934,-0.077925011515617,-0.083963714540005,-0.005093321204185,0.075719431042671,-0.053370799869299,0.032234136015177,-0.075575247406960,0.119866088032722,-0.032559741288424,0.016957521438599,-0.117872998118401,0.144499555230141,0.038965795189142,0.046068336814642) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.076916158199310,-0.004379475954920,-0.140175610780716,-0.045457541942596,-0.040709152817726,0.028891466557980,-0.136435300111771,0.129991739988327,-0.251745760440826,0.073632337152958,0.026637734845281,-0.097727127373219,0.170615404844284,-0.015855213627219,-0.000194413238205,0.137368187308311) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.011197780258954,0.185872212052345,-0.137779250741005,0.022072356194258,-0.298534750938416,0.012268234044313,-0.021496525034308,0.118930146098137,-0.055698525160551,-0.019962223246694,0.000242463109316,0.015004572458565,-0.069362856447697,0.002827434800565,0.041570626199245,0.122481182217598) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.073304258286953,0.036177843809128,-0.026567215099931,-0.021982429549098,-0.146659061312675,0.047410085797310,-0.020718704909086,-0.010050120763481,-0.076398879289627,0.064591653645039,-0.001733129727654,0.020112589001656,-0.072568818926811,-0.026659570634365,-0.034558076411486,0.175183907151222) * MODEL7_texOff(vec2(1,1));
res += mat4(0.085145048797131,0.073076337575912,-0.009368924424052,0.009443012066185,-0.018775265663862,0.014773795381188,-0.160917401313782,-0.006575701758265,0.023468537256122,0.061421703547239,-0.032480362802744,0.039816286414862,-0.031408853828907,-0.015776649117470,0.024032630026340,0.010201437398791) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.115249358117580,0.091144815087318,0.023794906213880,-0.008156148716807,0.013053731992841,-0.320734858512878,0.089621149003506,-0.659581184387207,-0.026926349848509,0.131446331739426,-0.146135419607162,0.131263479590416,0.093612916767597,0.032547131180763,-0.084395378828049,0.031622689217329) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.080395117402077,0.069853469729424,0.001121787237935,0.057540953159332,-0.109091952443123,0.113603547215462,0.056067086756229,0.058414563536644,-0.046655941754580,-0.078297361731529,0.094508007168770,-0.061840858310461,0.080266356468201,-0.048811201006174,-0.104599937796593,0.502261042594910) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.186545565724373,-0.001052848179825,0.045896682888269,-0.047003693878651,0.081093147397041,-0.017996620386839,0.011945768259466,0.057320166379213,-0.037676122039557,-0.069328539073467,0.106864199042320,-0.068255141377449,0.018032420426607,0.111301898956299,-0.000694389105774,0.072628378868103) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.092453375458717,-0.040387764573097,0.112838312983513,0.080087296664715,-0.033115010708570,-0.749772012233734,0.032821979373693,-0.060457345098257,0.103886172175407,0.003532055998221,-0.239715233445168,0.018551543354988,0.136621728539467,-0.036953605711460,-0.002587168710306,0.014460858888924) * MODEL8_texOff(vec2(0,0));
res += mat4(0.098774924874306,-0.012868170626462,-0.060509994626045,-0.087390638887882,0.041207745671272,-0.096297763288021,0.028320591896772,0.086361818015575,0.016806850209832,-0.254213333129883,0.140399187803268,0.017708469182253,-0.041864987462759,0.061914026737213,0.055125854909420,-0.090691559016705) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.110320009291172,-0.071599774062634,0.013958719559014,-0.105967663228512,0.041474115103483,0.031370427459478,-0.026915492489934,-0.016874350607395,0.033098194748163,0.023031482473016,-0.010091301985085,-0.073429048061371,-0.169857680797577,-0.004162791185081,0.041673939675093,-0.009087062440813) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.140880316495895,-0.013242316432297,0.089644283056259,-0.026512771844864,0.028115434572101,-0.108532078564167,-0.037588693201542,-0.003650666214526,-0.066988967359066,0.035963390022516,-0.230100899934769,-0.014211165718734,0.150253266096115,0.007390263956040,0.062966108322144,-0.009870033711195) * MODEL8_texOff(vec2(1,0));
res += mat4(0.157204076647758,0.115552626550198,-0.047525443136692,-0.084711559116840,-0.044900368899107,0.118222430348396,0.055470008403063,-0.046042840927839,0.071865841746330,0.020015824586153,-0.093561463057995,0.033097404986620,-0.052466385066509,-0.130883961915970,-0.179477334022522,-0.057476956397295) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.060172058641911,-0.009731563739479,-0.117561683058739,-0.031498380005360,-0.092578925192356,0.008250193670392,0.088563382625580,-0.063955664634705,-0.049126464873552,0.000113677269837,-0.061329171061516,-0.096460789442062,0.110604412853718,-0.041143745183945,0.020342791453004,-0.031143657863140) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.007692473009229,-0.017250619828701,0.043151017278433,0.029926313087344,-0.226760625839233,-0.040933933109045,0.055502947419882,-0.052206087857485,-0.034678060561419,-0.105322994291782,-0.339539766311646,-0.237118408083916,0.045332051813602,0.083531595766544,0.324403643608093,-0.010948536917567) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.061852090060711,-0.135623931884766,0.043489094823599,-0.065219782292843,-0.115728013217449,-0.121700555086136,-0.087681882083416,-0.043703913688660,-0.033487919718027,-0.233607679605484,-0.090965226292610,0.115011960268021,0.085237078368664,-0.069261185824871,0.136943235993385,0.002234992338344) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.039954531937838,-0.188080236315727,0.167009174823761,0.031926874071360,-0.154384508728981,0.110086597502232,-0.020667975768447,0.059890437871218,0.097399629652500,0.073326081037521,-0.047723114490509,-0.041239075362682,-0.034029342234135,-0.057860940694809,-0.010744620114565,-0.028493219986558) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.236385673284531,-0.152603551745415,-0.157176762819290,0.167925864458084,-0.058298695832491,-0.174766868352890,0.070091031491756,0.007258943747729,0.195815056562424,-0.053033381700516,-0.161455452442169,-0.046358291059732,-0.064816325902939,-0.170411825180054,-0.180993497371674,-0.065530873835087) * MODEL9_texOff(vec2(0,0));
res += mat4(0.123410664498806,-0.318007051944733,-0.056558273732662,0.090831242501736,-0.119928613305092,0.016383534297347,-0.060404982417822,-0.019674463197589,0.025635622441769,-0.139309242367744,-0.011039143428206,-0.091058366000652,-0.084321275353432,0.082312703132629,0.102377504110336,-0.040388260036707) * MODEL9_texOff(vec2(0,1));
res += mat4(0.108160696923733,-0.230915650725365,-0.004523205105215,0.010271628387272,-0.032325174659491,-0.006206828635186,0.144719958305359,-0.029195705428720,0.226457297801971,0.032510649412870,0.000250935612712,-0.047508023679256,-0.068753235042095,0.033700458705425,-0.128589570522308,-0.021793887019157) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.274037092924118,0.146828338503838,-0.016578717157245,0.083456628024578,-0.148767128586769,0.000218427492655,-0.106360718607903,0.022365687415004,0.259511709213257,-0.064108930528164,-0.048350907862186,-0.026605525985360,0.243521511554718,0.230265825986862,-0.035609953105450,-0.111689001321793) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.051653973758221,-0.148655876517296,-0.030074939131737,0.049728479236364,0.013964264653623,0.054499007761478,-0.064489968121052,0.001309324637987,0.082388766109943,-0.049656163901091,-0.005167398601770,0.051948208361864,-0.133914694190025,0.061717871576548,0.002873621881008,0.029561888426542) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.172287642955780,0.087220236659050,0.309919983148575,0.062431111931801,0.056886237114668,0.097582094371319,-0.021410843357444,0.064466282725334,0.109300062060356,-0.099476277828217,-0.067148819565773,0.019756935536861,0.044961251318455,-0.063684023916721,-0.098989747464657,-0.028126848861575) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.009004688821733,0.015863060951233,0.171186357736588,0.105996243655682,-0.117873236536980,0.098335854709148,0.123233132064342,0.055402111262083,0.144720897078514,-0.080200664699078,-0.110711947083473,-0.000127673789393,-0.024403965100646,0.040962502360344,0.021289132535458,0.244611918926239) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.068917110562325,0.031144609674811,-0.073703832924366,0.018218586221337,0.056576464325190,0.119079925119877,-0.064523935317993,-0.057684570550919,0.074584454298019,-0.170995041728020,-0.227949619293213,0.062519825994968,0.013962039723992,-0.011170131154358,0.072238020598888,0.253420382738113) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.046005554497242,0.015910070389509,0.000235337312915,-0.122476071119308,0.108724109828472,0.028640288859606,0.003758161328733,-0.051473151892424,0.033135216683149,-0.087476916611195,-0.046706840395927,-0.033184289932251,-0.113501109182835,0.021980499848723,-0.083929143846035,0.004417760763317) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.024097990244627,-0.073252238333225,-0.031369227916002,-0.040573667734861,0.186864182353020,-0.074140429496765,-0.014693666249514,-0.013979414477944,-0.045398630201817,-0.107592947781086,-0.097356319427490,0.018360445275903,-0.072067402303219,0.136389285326004,0.111462101340294,0.092456914484501) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.037625860422850,-0.032133933156729,-0.122633919119835,0.051704924553633,0.132460683584213,0.004130655433983,-0.063353881239891,-0.033739969134331,0.102632611989975,-0.157258257269859,0.004302078392357,0.022622061893344,-0.051093418151140,0.012199907563627,0.110476836562157,-0.119124978780746) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.122076787054539,-0.013950209133327,0.070276834070683,-0.045060701668262,0.003232354298234,0.111280195415020,0.106930278241634,0.041242890059948,0.151484668254852,-0.001278832787648,-0.008034266531467,0.014723488129675,-0.008545232936740,0.071861319243908,-0.096903868019581,-0.022577654570341) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.017482627183199,0.039730384945869,0.030349772423506,-0.013885155320168,0.051884960383177,-0.037275619804859,0.041323564946651,-0.013087312690914,0.146312341094017,-0.171236738562584,0.041246868669987,0.001250911969692,0.020593076944351,-0.017447039484978,0.019860770553350,-0.049849666655064) * MODEL10_texOff(vec2(1,0));
res += mat4(0.150204747915268,-0.020081201568246,0.185923621058464,-0.034939680248499,0.008484396152198,-0.087973780930042,-0.030802553519607,-0.064093753695488,-0.008716479875147,-0.150279521942139,0.036705408245325,0.046585567295551,0.029146842658520,0.057223647832870,0.124831900000572,-0.098497956991196) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.007294500246644,0.102351509034634,-0.111854366958141,-0.034373905509710,0.062206912785769,0.153346151113510,0.036662381142378,-0.068441510200500,-0.062343493103981,0.100826300680637,0.000264039874310,-0.080830670893192,0.003860170021653,-0.078771010041237,-0.125132247805595,-0.018224570900202) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.071335136890411,-0.064641632139683,0.105450637638569,-0.071395941078663,-0.006308990996331,-0.037822417914867,-0.152805045247078,0.014528507366776,-0.053252018988132,-0.068745426833630,0.023653859272599,-0.060467630624771,0.014325654134154,-0.035463768988848,-0.318936258554459,0.070870108902454) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.040112230926752,0.087388910353184,-0.002306513721123,0.110841915011406,-0.160177171230316,-0.081403829157352,-0.234379440546036,-0.001200782367960,0.014834664762020,0.024761021137238,-0.065197907388210,0.100117027759552,0.024824468418956,-0.203416004776955,-0.256682008504868,-0.195841789245605) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.026298521086574,-0.036871064454317,0.040784142911434,0.011142280884087,-0.185859620571136,0.017482260242105,0.054497521370649,0.046506445854902,-0.038868214935064,0.069890543818474,-0.017709463834763,-0.036834727972746,0.010720059275627,-0.056116227060556,0.122602000832558,0.041760340332985) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.049184236675501,0.037723563611507,-0.193850442767143,-0.055222630500793,-0.028748387470841,-0.086460895836353,-0.088521122932434,-0.043305806815624,-0.004791902378201,0.047918226569891,0.121899388730526,-0.060860861092806,-0.068974003195763,0.253635376691818,0.252818286418915,0.025315005332232) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.033201195299625,0.033915191888809,0.211303934454918,0.013393953442574,-0.034706644713879,0.079741604626179,-0.157462954521179,0.012605680152774,-0.023739334195852,0.052630506455898,-0.022983767092228,0.088308908045292,0.080011568963528,0.007033384870738,0.195378556847572,-0.042300023138523) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.037803970277309,-0.053166501224041,-0.018702568486333,0.042630963027477,-0.062672905623913,-0.016391640529037,-0.022468481212854,-0.125856891274452,-0.038865845650434,0.073199026286602,0.038977220654488,0.066167078912258,-0.046377748250961,0.112964659929276,-0.104852057993412,-0.065286584198475) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.156488329172134,0.120887458324432,0.015260581858456,-0.006948402151465,0.116372384130955,-0.112765476107597,-0.055390667170286,-0.052426591515541,-0.092803545296192,0.032134942710400,0.137142524123192,0.112042769789696,-0.033257491886616,-0.125704765319824,-0.053069412708282,-0.000605521898251) * MODEL11_texOff(vec2(1,0));
res += mat4(0.061384968459606,0.079629778862000,-0.056408088654280,0.155938252806664,-0.029802625998855,0.119089797139168,-0.016924833878875,0.061412476003170,-0.079278960824013,0.006624623667449,0.003440272761509,-0.166030883789063,0.113866016268730,0.170193821191788,-0.104379661381245,0.034648172557354) * MODEL11_texOff(vec2(1,1));
res += mat4(0.026767779141665,-0.071558937430382,0.040127288550138,-0.016665076836944,0.085724569857121,-0.014399400912225,-0.142236292362213,-0.104966014623642,0.063650198280811,-0.092049680650234,0.104835376143456,-0.009022674523294,0.023554088547826,-0.058933228254318,-0.137522414326668,0.011328565888107) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.014213238842785,-0.069923460483551,0.066951632499695,-0.149146571755409,-0.051792152225971,0.163690045475960,0.080218024551868,0.145020708441734,-0.009897110983729,0.030203770846128,0.009151365607977,-0.053830206394196,-0.049200952053070,0.221870064735413,-0.243390098214149,0.192741766571999) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.013264141045511,-0.113002181053162,0.016917569562793,-0.156221523880959,-0.099182948470116,0.067597441375256,0.114927947521210,-0.032951664179564,-0.094012401998043,-0.015893748030066,0.034282073378563,-0.101057730615139,0.036618661135435,-0.010101551190019,-0.001350712962449,0.118991702795029) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.060442052781582,-0.078378796577454,-0.231926396489143,0.086957640945911,0.119035266339779,0.037600684911013,0.046452686190605,-0.053343296051025,0.102705545723438,-0.054376978427172,0.192954584956169,-0.078390598297119,-0.007325377780944,-0.028211232274771,-0.237672299146652,-0.017138294875622) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.010072520002723,0.090189151465893,0.273250848054886,0.148042589426041,-0.038332223892212,0.095034338533878,0.112010002136230,-0.058247156441212,0.005065937526524,0.017960814759135,-0.080057069659233,0.087227210402489,-0.057414125651121,0.000285907968646,-0.304857492446899,0.021529050543904) * MODEL12_texOff(vec2(0,0));
res += mat4(0.067830570042133,0.024461802095175,0.015600892715156,-0.174225196242332,-0.046610727906227,-0.020774252712727,-0.024807618930936,-0.004902582615614,-0.032762061804533,0.134357348084450,0.085198707878590,-0.010666573420167,-0.096212714910507,0.034444592893124,0.014699288643897,-0.068879336118698) * MODEL12_texOff(vec2(0,1));
res += mat4(0.005028168670833,0.019573086872697,-0.022574778646231,-0.033446654677391,0.032097250223160,-0.039927475154400,-0.003734816098586,-0.114874646067619,0.027386156842113,-0.040788162499666,-0.068771563470364,-0.076867304742336,-0.287817150354385,0.075050219893456,0.099938742816448,0.013958320952952) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.082731790840626,0.045520577579737,-0.069319337606430,-0.010765171609819,0.163187116384506,-0.114235483109951,-0.084378078579903,-0.082399636507034,-0.007410709746182,-0.107580870389938,-0.021152712404728,0.029403233900666,-0.011961465701461,-0.047798633575439,0.010611247271299,-0.038478650152683) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.007791788317263,0.058204885572195,0.034343786537647,0.001420284854248,-0.071618981659412,-0.051210243254900,0.001301168114878,-0.212325289845467,-0.076657027006149,0.109338060021400,0.015498748049140,-0.016390053555369,0.050370920449495,0.025784557685256,-0.011200019158423,-0.106917455792427) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.110747687518597,0.248249188065529,0.363858729600906,-0.037369299679995) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL2
//!DESC [AiUpscale_HQ_3x_Photo] mapping 3_2

vec4 hook()
{
vec4 res = vec4(0.071061260998249,0.058771040290594,0.053506489843130,0.012293118983507);
res += mat4(-0.015442758798599,-0.071923978626728,0.077984325587749,-0.065124154090881,-0.086680941283703,-0.029043862596154,0.084851190447807,-0.009255971759558,0.003321544500068,-0.078195385634899,0.040740326046944,-0.159910485148430,-0.033789891749620,-0.034034397453070,0.111019857227802,-0.003648388898000) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.018219593912363,-0.050427544862032,0.210892200469971,-0.063296303153038,-0.005880273878574,-0.073351763188839,0.093717783689499,0.046120289713144,-0.090392485260963,0.040740702301264,-0.088018842041492,0.035689208656549,-0.038391787558794,-0.058063309639692,-0.112994022667408,-0.019941417500377) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.053761806339025,-0.071583755314350,0.309818357229233,-0.051597174257040,-0.150450631976128,-0.125236764550209,0.061743341386318,0.030070256441832,-0.046558063477278,-0.005746660288423,-0.057195268571377,-0.046320501714945,-0.071507066488266,-0.074056513607502,0.003459963947535,0.004094949923456) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.091004751622677,-0.018339751288295,0.014070970006287,0.005277882330120,-0.093832321465015,-0.121743492782116,0.085008218884468,0.069417893886566,-0.025823144242167,-0.054505702108145,-0.008747986517847,-0.124656029045582,-0.007371943909675,-0.132963493466377,0.111597530543804,0.017613887786865) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.071987435221672,-0.005193790886551,0.035263199359179,0.073907338082790,0.316383540630341,-0.337965667247772,-0.077380061149597,0.091244190931320,-0.022167999297380,0.045618239790201,-0.043979946523905,-0.059667322784662,-0.024752920493484,-0.141761541366577,-0.037960294634104,-0.000171306746779) * MODEL7_texOff(vec2(0,0));
res += mat4(0.038287613540888,0.016323886811733,0.037779785692692,-0.109494738280773,-0.007964625954628,-0.100764155387878,-0.031767480075359,-0.011425119824708,0.021250665187836,0.080448724329472,-0.089664123952389,0.096667774021626,-0.099411845207214,-0.044552456587553,0.155354514718056,0.081133030354977) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.092126518487930,-0.026395937427878,0.122864693403244,0.287353247404099,0.003581792814657,-0.014339066110551,0.063902296125889,0.145090684294701,-0.111977607011795,-0.010027477517724,-0.055750563740730,-0.198121860623360,-0.023168843239546,-0.205115497112274,-0.141145646572113,-0.072646290063858) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.077567316591740,-0.034506008028984,0.086927488446236,-0.042288158088923,0.034479342401028,-0.071061819791794,0.058635786175728,-0.022809410467744,-0.060561224818230,0.050878796726465,-0.044846314936876,0.079400472342968,-0.029739452525973,-0.264426708221436,-0.027601527050138,0.002427647355944) * MODEL7_texOff(vec2(1,0));
res += mat4(0.053904470056295,0.041676864027977,0.215726554393768,-0.027038354426622,-0.065633490681648,-0.025568587705493,-0.049739591777325,0.044029835611582,0.061356525868177,0.035265598446131,0.017474137246609,-0.083848655223846,-0.036805201321840,-0.114945538341999,0.136377334594727,0.040621928870678) * MODEL7_texOff(vec2(1,1));
res += mat4(0.038579456508160,-0.022120309993625,0.074027270078659,0.097075037658215,0.012910830788314,-0.141746044158936,-0.260415852069855,0.297711014747620,-0.055796790868044,-0.037877887487411,0.043138060718775,-0.016750220209360,-0.042543970048428,0.024887455627322,-0.032950773835182,0.166980430483818) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.056690346449614,-0.086175389587879,-0.077751725912094,-0.042183093726635,0.101496458053589,-0.248887792229652,0.484526157379150,-0.073250167071819,0.064302861690521,-0.194266229867935,0.034574873745441,0.101739898324013,0.033934745937586,0.161094069480896,0.158891052007675,-0.065794289112091) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.003993897233158,0.012051205150783,0.020341975614429,-0.049654360860586,-0.086436301469803,0.041935957968235,-0.182101830840111,-0.052381940186024,0.016511790454388,0.042188800871372,0.054590247571468,-0.071148216724396,0.074209205806255,0.224122643470764,-0.047089483588934,0.000664039805997) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.086188748478889,0.023887729272246,0.031418561935425,0.060148779302835,0.025712411850691,0.056234747171402,-0.469355165958405,0.402151644229889,0.047370884567499,-0.007459947373718,-0.077919654548168,0.026341309770942,-0.038678541779518,0.062163021415472,-0.138552948832512,0.124283656477928) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.093334712088108,-0.091843545436859,-0.068176336586475,-0.020430756732821,-0.186846941709518,0.110262036323547,0.216544285416603,0.011132327839732,0.033896718174219,-0.124090977013111,0.045233156532049,-0.153036296367645,-0.037959218025208,0.092818930745125,0.027185732498765,0.081874698400497) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.085757046937943,-0.030659912154078,0.032761108130217,-0.096169978380203,0.113267533481121,0.032923135906458,-0.445337742567062,-0.016721783205867,0.096903353929520,0.001953148283064,-0.069300509989262,-0.036889772862196,-0.056168753653765,-0.089604347944260,-0.043254707008600,-0.116652943193913) * MODEL8_texOff(vec2(0,1));
res += mat4(0.002052943455055,0.033616073429585,0.050490882247686,0.114809036254883,-0.046097017824650,0.029487121850252,-0.120472885668278,0.036444332450628,-0.003288673004135,0.007306226529181,0.086117014288902,0.049100600183010,0.026790870353580,-0.098682217299938,0.022820988669991,0.169826284050941) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.036568198353052,0.001497058197856,-0.092754013836384,0.000728571903892,0.019110901281238,0.050656780600548,0.097243748605251,-0.046537578105927,-0.012899915687740,0.053390622138977,0.073119714856148,0.066780380904675,-0.028716180473566,-0.059426981955767,-0.079181604087353,0.093690879642963) * MODEL8_texOff(vec2(1,0));
res += mat4(0.190762057900429,0.023497868329287,-0.084667272865772,0.056184202432632,0.042627882212400,0.054591037333012,-0.081381812691689,-0.005392840597779,-0.086526028811932,0.160468220710754,-0.031238473951817,0.060365509241819,0.080057360231876,-0.063443675637245,-0.076432861387730,-0.041854921728373) * MODEL8_texOff(vec2(1,1));
res += mat4(0.043545741587877,-0.034559439867735,-0.040480211377144,-0.166665554046631,0.026123264804482,0.113497547805309,-0.121814675629139,-0.140302002429962,0.124306932091713,-0.008796975947917,-0.083543434739113,-0.053510729223490,0.016798615455627,-0.025697913020849,0.077778458595276,0.043545220047235) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.049155060201883,0.030694754794240,-0.063041590154171,-0.132756844162941,0.059688389301300,-0.125675544142723,-0.072846084833145,-0.080667160451412,0.032389119267464,0.005847624968737,0.018454959616065,-0.078459583222866,0.066949419677258,0.005435909144580,-0.058290194720030,0.158110216259956) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.015160681679845,-0.023899111896753,0.075887754559517,-0.078576542437077,-0.029662560671568,-0.056889977306128,0.167363867163658,-0.009883486665785,0.148785397410393,-0.004582513589412,-0.149105027318001,0.005207312293351,-0.022394083440304,-0.155971527099609,-0.068146280944347,0.072356380522251) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.047093506902456,-0.034720633178949,-0.101219154894352,-0.288729399442673,0.078561432659626,0.042422648519278,0.143519476056099,-0.052198026329279,0.025335844606161,0.009111398831010,-0.007681429386139,0.163100913167000,-0.071277238428593,0.078352324664593,0.097792647778988,-0.198100164532661) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.000856782309711,0.042869441211224,-0.551114618778229,-0.242099881172180,-0.162472531199455,0.077220194041729,-0.120672538876534,-0.144828900694847,0.104820184409618,0.032155357301235,0.020307306200266,0.107338719069958,-0.044092334806919,0.315838366746902,-0.031004799529910,-0.050286963582039) * MODEL9_texOff(vec2(0,0));
res += mat4(0.229455143213272,-0.019222458824515,0.112082049250603,-0.029029382392764,0.150463372468948,-0.068557925522327,0.007686859928071,0.031285494565964,0.148794874548912,-0.050380434840918,-0.094912327826023,-0.056975912302732,-0.022459276020527,-0.536421656608582,0.080231159925461,-0.067480176687241) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.031589735299349,-0.081488713622093,-0.136644512414932,0.162020713090897,0.027585681527853,0.049871392548084,-0.068619430065155,0.012131994590163,0.038612063974142,-0.015986887738109,-0.016311427578330,0.105988144874573,0.021809399127960,-0.091695807874203,0.001024486031383,0.164471223950386) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.168867513537407,-0.845531344413757,-0.461790323257446,-0.150522962212563,-0.065491475164890,0.143567621707916,-0.025874974206090,0.113698042929173,0.088053718209267,-0.006394945550710,-0.019173605367541,0.166556745767593,-0.055908728390932,-0.259307682514191,-0.030430460348725,0.033908009529114) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.158921733498573,-0.012944979593158,0.035949852317572,0.015352437272668,0.074637003242970,-0.079957574605942,0.131324246525764,0.033712968230247,0.130152106285095,-0.007379491347820,-0.120336323976517,0.026750912889838,-0.019661176949739,-0.185726359486580,0.047717243432999,-0.043610271066427) * MODEL9_texOff(vec2(1,1));
res += mat4(0.041819002479315,-0.002195245353505,-0.054427247494459,0.004716042894870,-0.034330412745476,-0.053798597306013,0.117372691631317,-0.185530498623848,-0.013700700365007,-0.032174915075302,-0.063301295042038,-0.034251842647791,-0.005919456481934,-0.088782899081707,0.065225094556808,-0.031726136803627) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.024528676643968,0.028981829062104,-0.039853997528553,-0.109977215528488,0.028288755565882,0.001876178197563,-0.102533556520939,-0.122029058635235,-0.040365315973759,0.013721400871873,-0.243558451533318,0.149012252688408,0.037595190107822,-0.070676304399967,-0.215224921703339,-0.104623094201088) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.078697845339775,0.004393530078232,0.017355445772409,-0.045016974210739,0.014923503622413,0.030358072370291,0.014506534673274,0.025823580101132,0.000935985590331,-0.032536473125219,0.023410316556692,0.066561728715897,0.057870492339134,0.062458064407110,0.082130819559097,-0.105467170476913) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.028077328577638,0.070372194051743,0.048170130699873,0.106792412698269,-0.025063445791602,0.056779075413942,0.000386018335121,-0.009715791791677,0.035208664834499,-0.014046090655029,-0.156003773212433,-0.040025718510151,-0.006450101267546,-0.049190305173397,0.163082450628281,0.145651042461395) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.338681966066360,-0.072039388120174,0.012091011740267,0.009297163225710,0.006624485831708,0.067875750362873,0.246517732739449,0.066727414727211,0.139380514621735,-0.103917032480240,-0.156421482563019,-0.020087072625756,0.113341614603996,-0.140505462884903,0.060690503567457,-0.056277081370354) * MODEL10_texOff(vec2(0,0));
res += mat4(0.130491912364960,0.073067709803581,-0.043666206300259,0.066789627075195,0.119890399277210,0.026626078411937,0.101997122168541,-0.055539052933455,0.020685292780399,0.030975922942162,-0.056269310414791,-0.020346067845821,-0.177744284272194,-0.140771135687828,-0.014597457833588,-0.034063544124365) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.095254175364971,0.067784979939461,0.048395793884993,0.192629009485245,0.078344203531742,-0.015803618356586,-0.042092073708773,-0.017154565081000,0.029869483783841,0.024505065754056,-0.253486961126328,0.024822093546391,-0.066229149699211,0.004862122237682,0.003675658255816,0.215804457664490) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.126122415065765,-0.004543108399957,0.042227499186993,0.080025374889374,-0.088320143520832,0.061543088406324,-0.023119738325477,0.008494918234646,0.018305361270905,0.055667433887720,-0.131257295608521,0.025004832074046,0.020585848018527,0.006298540160060,0.078270122408867,0.100737258791924) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.016281573101878,-0.022934842854738,0.017364639788866,-0.046667307615280,-0.056903358548880,0.079288631677628,-0.005785484798253,-0.131844073534012,-0.035226006060839,-0.099084593355656,-0.181373834609985,-0.037450384348631,0.092641934752464,-0.125718906521797,-0.131100252270699,-0.167671710252762) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.075544364750385,0.036983728408813,-0.019998142495751,-0.039774253964424,0.056600559502840,0.082118541002274,-0.184040561318398,-0.081118196249008,-0.056370448321104,0.029234549030662,-0.027270216494799,0.014775305055082,-0.016969786956906,-0.041046824306250,0.022174196317792,-0.065236791968346) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.062982678413391,0.033995028585196,0.042875174432993,0.099002026021481,-0.012974849902093,0.047783087939024,0.086420483887196,-0.016366615891457,-0.079867444932461,0.019937919452786,0.116764776408672,-0.098497271537781,-0.025551127269864,-0.079875752329826,-0.135066092014313,-0.160729378461838) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.018900895491242,-0.058147538453341,0.061925176531076,0.071983695030212,0.048254624009132,-0.023979682475328,-0.041306987404823,0.066377460956573,-0.060414444655180,0.068493790924549,0.058961674571037,-0.019000951200724,-0.044178266078234,-0.007571521680802,0.112871199846268,-0.122042879462242) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.013220283202827,0.042876232415438,0.184825971722603,-0.042445585131645,0.074648611247540,-0.089595645666122,-0.183358564972878,0.139819130301476,-0.033711131662130,0.045616939663887,-0.096799813210964,0.047349564731121,-0.069324970245361,0.027538362890482,0.029257925227284,0.069770388305187) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.191757619380951,0.201975867152214,-0.160693496465683,0.066146157681942,-0.200787633657455,0.195748910307884,0.082537561655045,-0.021003160625696,-0.070138715207577,0.117421269416809,-0.019527498632669,-0.323114901781082,0.103290781378746,-0.455686688423157,0.010176538489759,-0.098409079015255) * MODEL11_texOff(vec2(0,0));
res += mat4(0.068374179303646,0.012934911064804,0.000474740547361,-0.007724138442427,-0.208888769149780,0.109409421682358,-0.127831056714058,0.068210132420063,-0.157825753092766,0.062435481697321,0.010601916350424,0.034540988504887,-0.630240738391876,0.123430445790291,0.062919490039349,0.074330374598503) * MODEL11_texOff(vec2(0,1));
res += mat4(0.037041835486889,-0.064596757292747,-0.017297917976975,0.011093240231276,0.063764497637749,-0.033754255622625,-0.140662670135498,-0.040133066475391,0.006278424523771,0.042120438069105,-0.047194048762321,0.024995723739266,0.005459006410092,0.007302170619369,0.018257547169924,-0.011426979675889) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.072365708649158,-0.104031167924404,-0.092272557318211,-0.145824953913689,0.080601111054420,-0.019757622852921,-0.123217619955540,-0.080277688801289,-0.116151519119740,0.144132092595100,0.028165344148874,0.103645212948322,0.019334575161338,-0.009094082750380,0.029058953747153,-0.186331868171692) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.093634136021137,-0.106628246605396,0.125550195574760,0.048192307353020,0.011492880992591,-0.116833589971066,-0.156565859913826,-0.034138076007366,-0.030606687068939,0.159207567572594,-0.187233850359917,0.006001893430948,-0.165502324700356,-0.024290064349771,0.009467703290284,-0.046233765780926) * MODEL11_texOff(vec2(1,1));
res += mat4(0.050814684480429,0.053107634186745,-0.051693342626095,-0.082896888256073,-0.002349473768845,0.042783997952938,0.053837217390537,0.073317043483257,-0.103775262832642,-0.031706430017948,-0.041908524930477,-0.142150014638901,0.030764779075980,-0.049537669867277,0.024020167067647,0.053290627896786) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.036900997161865,0.072672396898270,-0.115510605275631,-0.054333534091711,0.107219099998474,0.000178020214662,0.018866565078497,0.071040816605091,0.032724950462580,-0.066408805549145,-0.044355221092701,-0.033645726740360,-0.055348135530949,0.080121785402298,-0.124513328075409,-0.010143855586648) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.014626869000494,0.100821085274220,-0.021385967731476,-0.060939639806747,-0.032126180827618,-0.010995138436556,0.018396111205220,-0.070162311196327,-0.026045218110085,-0.152974829077721,0.049204740673304,0.101399764418602,0.007424722891301,0.044630710035563,0.010593083687127,-0.033274594694376) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.079899966716766,-0.028073728084564,-0.041473496705294,0.076689980924129,0.039812128990889,0.127332061529160,0.017564987763762,0.064061313867569,0.121616825461388,-0.002884392859414,0.064234092831612,-0.100840605795383,0.125774770975113,-0.214635193347931,0.050087802112103,0.053820684552193) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.282740443944931,-0.072233043611050,-0.010960757732391,0.004569794051349,-0.041612893342972,0.023726943880320,-0.093125276267529,-0.073497012257576,-0.252385884523392,-0.149145245552063,0.094613522291183,-0.043002787977457,0.050953116267920,0.044989529997110,-0.060883998870850,-0.031472973525524) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.045508846640587,-0.009096806868911,0.041234750300646,-0.086565889418125,0.134237989783287,-0.040237654000521,0.056877240538597,-0.070584900677204,0.082675859332085,-0.101414091885090,-0.113402985036373,-0.046879917383194,-0.101348586380482,0.093729659914970,-0.020418534055352,0.025137703865767) * MODEL12_texOff(vec2(0,1));
res += mat4(0.022730797529221,0.016192574054003,0.085650831460953,0.056720234453678,0.023886073380709,0.056461658328772,-0.042872209101915,0.077515728771687,0.054072599858046,0.139069259166718,-0.108581416308880,0.045391507446766,-0.060494773089886,0.090026281774044,0.057578761130571,0.119550861418247) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.038399651646614,0.211371153593063,-0.017049254849553,0.281764686107635,0.056477781385183,-0.071608997881413,-0.141751840710640,-0.028617635369301,0.066024385392666,0.124412596225739,-0.036482457071543,0.106002911925316,-0.005482706241310,-0.026515709236264,0.063955381512642,0.020280044525862) * MODEL12_texOff(vec2(1,0));
res += mat4(0.003224392887205,0.108680993318558,-0.101502776145935,-0.075373277068138,-0.126881599426270,-0.146014645695686,-0.095967434346676,0.031956892460585,-0.069850236177444,0.001337531488389,0.083405070006847,0.041350513696671,0.004725169856101,-0.073792479932308,0.005878958385438,-0.046992640942335) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.198631480336189,-0.061217069625854,0.004170816391706,-0.204144895076752) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL3
//!DESC [AiUpscale_HQ_3x_Photo] mapping 3_3

vec4 hook()
{
vec4 res = vec4(-0.419475406408310,-0.005471589509398,0.018417419865727,0.175039619207382);
res += mat4(0.005006829742342,-0.135802358388901,-0.084107004106045,0.053029529750347,-0.051144286990166,0.167977064847946,-0.012269782833755,-0.395109742879868,-0.038621991872787,-0.287913113832474,-0.286107182502747,0.050697986036539,-0.122876159846783,-0.060348909348249,0.122815057635307,0.271147042512894) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.215998098254204,-0.015765374526381,-0.147033989429474,0.105429485440254,-0.014682356268167,0.066943377256393,0.007529617752880,-0.115703433752060,0.023118024691939,-0.339634776115417,-0.017799837514758,-0.018473269417882,-0.139894977211952,-0.153355523943901,-0.008428743109107,0.174186423420906) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.027202501893044,0.144841521978378,0.038092143833637,0.099337525665760,-0.037313744425774,0.113598063588142,-0.034366793930531,0.135667145252228,0.074661672115326,-0.271303653717041,0.002702161669731,0.044397842139006,-0.098460704088211,0.080899514257908,0.062331102788448,0.166661143302917) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.027241492643952,0.117488101124763,-0.041246566921473,0.181709542870522,0.049916688352823,0.093622431159019,-0.068317659199238,-0.605802893638611,-0.043223779648542,-0.256704151630402,-0.327338546514511,-0.272875487804413,0.035331394523382,-0.088867232203484,0.046642757952213,0.052360672503710) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.007335194852203,0.131413534283638,-0.025543127208948,-0.168636322021484,-0.009640580043197,-0.095056012272835,0.002069607842714,-0.566081821918488,-0.077312931418419,-0.200578883290291,-0.097684964537621,-0.108000099658966,0.033455520868301,-0.067331030964851,-0.005083743017167,0.164860114455223) * MODEL7_texOff(vec2(0,0));
res += mat4(0.119132146239281,0.112840503454208,-0.071459054946899,-0.033991180360317,-0.065578468143940,-0.039410647004843,0.041720591485500,0.067699052393436,-0.130314573645592,-0.137176856398582,-0.063356786966324,-0.129580244421959,0.056730341166258,0.003597427159548,-0.029731830582023,0.058964144438505) * MODEL7_texOff(vec2(0,1));
res += mat4(0.228478595614433,-0.091422714293003,-0.025412168353796,0.185991898179054,-0.013358685187995,0.040933534502983,-0.240824535489082,-0.102951332926750,0.062519595026970,-0.299637317657471,0.218588948249817,-0.109903492033482,0.007834475487471,0.081534527242184,-0.016029410064220,0.118285238742828) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.084298536181450,0.091299168765545,0.140102699398994,-0.123422585427761,-0.047399252653122,-0.058785002678633,0.001874101231806,-0.132667303085327,-0.002971665235236,-0.440369039773941,0.217790827155113,-0.005588344763964,0.061563443392515,0.012913166545331,0.000090964334959,0.156049028038979) * MODEL7_texOff(vec2(1,0));
res += mat4(0.012576077133417,0.064873114228249,-0.025944858789444,0.114546597003937,-0.080698832869530,-0.023473419249058,-0.037835959345102,0.165807947516441,-0.131239667534828,-0.236329466104507,0.069384105503559,-0.095140330493450,0.010261129587889,0.079469501972198,-0.008183524943888,0.193093135952950) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.023110568523407,-0.098718538880348,0.029539473354816,-0.036255050450563,0.037615917623043,-0.138755753636360,-0.222691342234612,-0.130456313490868,-0.000907614070456,0.032229192554951,-0.019706033170223,0.099300913512707,-0.061331514269114,0.026665180921555,-0.122109301388264,0.044074557721615) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.029284358024597,-0.121582865715027,0.011850961484015,0.021202635020018,-0.012788160704076,-0.011698797345161,0.179859265685081,-0.345588296651840,0.083148285746574,0.037023704499006,0.008749522268772,0.003653593594208,0.032957784831524,0.051765784621239,0.007543871644884,0.011332738213241) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.053750772029161,-0.142332419753075,-0.020598372444510,0.099729076027870,-0.016282359138131,0.119591645896435,0.030531425029039,0.065150946378708,0.023824706673622,0.082828015089035,0.004604988731444,-0.058176629245281,0.065553270280361,0.046249594539404,-0.006518912035972,0.024741977453232) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.142439097166061,-0.103998072445393,0.053199358284473,-0.085849151015282,0.027845380827785,0.063748665153980,-0.249960273504257,-0.099090553820133,0.035936698317528,-0.128756970167160,-0.092707879841328,-0.060183063149452,-0.046013146638870,-0.068052642047405,-0.082998499274254,-0.047165118157864) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.129012033343315,-0.074731960892677,0.091722495853901,-0.003370120888576,0.168767854571342,-0.041412878781557,0.331474870443344,-0.438025087118149,0.270699530839920,-0.070780239999294,0.132547110319138,0.032229457050562,0.111633531749249,0.157863542437553,-0.045769423246384,0.014525652863085) * MODEL8_texOff(vec2(0,0));
res += mat4(0.022630583494902,-0.045607723295689,-0.012459635734558,-0.024959992617369,-0.064158722758293,0.052743606269360,-0.012875647284091,-0.208762720227242,0.031166505068541,0.130192995071411,0.009665430523455,-0.071757860481739,0.055605895817280,-0.133823066949844,0.074896574020386,-0.271634995937347) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.009471210651100,0.100451104342937,0.012232358567417,-0.062911070883274,0.028425104916096,-0.311190217733383,0.091641485691071,0.018168674781919,0.039367105811834,0.129789650440216,0.097932942211628,0.063233420252800,-0.001897618640214,-0.047857604920864,-0.079342938959599,0.087413899600506) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.048900134861469,-0.066695451736450,-0.110220097005367,-0.175733670592308,-0.037326652556658,-0.025318123400211,0.077063314616680,-0.056363187730312,0.165359482169151,0.013967452570796,0.206359416246414,0.148058250546455,0.245640143752098,0.062656216323376,0.071588903665543,0.134223937988281) * MODEL8_texOff(vec2(1,0));
res += mat4(0.036145653575659,-0.006885910406709,-0.060981281101704,-0.031988121569157,0.002778981812298,-0.082621008157730,-0.043639954179525,-0.184103131294250,0.007113020867109,0.077942036092281,0.103949025273323,-0.117706850171089,0.556436538696289,0.136229723691940,0.253444671630859,0.130403235554695) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.010419586673379,0.021173954010010,0.032770201563835,-0.026329899206758,0.074361294507980,-0.011835178360343,-0.032203115522861,0.104954235255718,0.059049088507891,-0.081292115151882,-0.144797667860985,-0.039589643478394,-0.051609493792057,0.075137510895729,0.089116901159286,0.100665904581547) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.057630036026239,0.136188581585884,-0.082368113100529,-0.137217923998833,0.025910122320056,-0.027808371931314,-0.191037669777870,0.174839332699776,0.124495968222618,-0.001454799203202,-0.055853907018900,0.130760312080383,0.045546948909760,0.011379666626453,0.016959086060524,0.013376281596720) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.035412248224020,0.106935404241085,-0.032292857766151,0.069617040455341,-0.024515440687537,-0.022892469540238,-0.035745773464441,0.021138440817595,0.006269509438425,-0.073747716844082,0.091832533478737,0.140105351805687,0.061503473669291,-0.214619085192680,-0.024362009018660,0.098263479769230) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.066358208656311,0.004563367925584,-0.099468901753426,-0.100396245718002,-0.112087950110435,0.050934225320816,0.012363502755761,-0.080316759645939,0.047160048037767,0.071141086518764,-0.068753972649574,-0.005921040661633,-0.001942576258443,-0.207097381353378,-0.119743481278419,-0.018955245614052) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.080562919378281,0.090789370238781,-0.278735727071762,-0.293618679046631,-0.017142118886113,-0.086624883115292,-0.083871096372604,0.050304301083088,0.155272513628006,-0.077921085059643,0.116783395409584,0.009455191902816,-0.018634844571352,0.010463754646480,0.002186975209042,0.020126106217504) * MODEL9_texOff(vec2(0,0));
res += mat4(0.051362190395594,-0.232547700405121,-0.064770296216011,-0.271763294935226,-0.008606884628534,-0.127485886216164,0.020160766318440,0.029374020174146,0.065397851169109,0.081457003951073,0.113897748291492,0.096309125423431,0.033587973564863,-0.140185147523880,-0.052818648517132,0.054585818201303) * MODEL9_texOff(vec2(0,1));
res += mat4(0.054443549364805,-0.053415481001139,-0.180763274431229,0.089846588671207,-0.051597118377686,0.122327633202076,0.009985929355025,-0.102073758840561,0.151230722665787,0.128460735082626,-0.045163605362177,0.105725452303886,0.008124116808176,0.032324630767107,-0.178638830780983,-0.024246424436569) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.088302165269852,0.082874976098537,-0.015314474701881,0.046603765338659,-0.004959310404956,-0.015573632903397,-0.148340508341789,-0.046219665557146,0.003426021663472,0.037415437400341,0.026391927152872,-0.106085203588009,0.164813384413719,0.003227890236303,0.030707323923707,0.141972124576569) * MODEL9_texOff(vec2(1,0));
res += mat4(0.032539505511522,-0.029902035370469,0.145086884498596,-0.155876904726028,-0.059248749166727,-0.152613028883934,0.033735379576683,0.032339110970497,0.033077161759138,0.154875993728638,0.035536728799343,-0.042168401181698,0.075484603643417,0.089415557682514,-0.060425255447626,0.042455606162548) * MODEL9_texOff(vec2(1,1));
res += mat4(0.062852777540684,-0.025582872331142,-0.021820100024343,0.214041337370872,-0.011803112924099,-0.126419976353645,-0.120205081999302,0.043891843408346,-0.014662876725197,0.103919163346291,0.126239955425262,0.267770022153854,0.003038343973458,0.027980009093881,-0.069573573768139,-0.077213339507580) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.022171923890710,-0.032951619476080,0.023079702630639,0.093538336455822,0.006960478145629,-0.023409513756633,-0.163261473178864,0.189717590808868,0.081701502203941,-0.002553024562076,-0.112393505871296,0.127623423933983,0.063469275832176,0.067064858973026,-0.017001086845994,-0.024070056155324) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.005266444291919,0.060718841850758,-0.057120796293020,0.137743443250656,-0.018520457670093,-0.167248845100403,-0.047308407723904,-0.031762313097715,0.110399164259434,-0.065881319344044,0.009005684405565,0.160182207822800,0.081853292882442,-0.186287596821785,-0.001321268151514,-0.052427504211664) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.033029686659575,0.123526036739349,-0.008329120464623,-0.021078107878566,-0.040751431137323,-0.135381177067757,-0.062119536101818,0.146111533045769,-0.104335226118565,0.083823151886463,-0.075248092412949,0.026894090697169,0.056337263435125,0.160516098141670,-0.170500010251999,0.063193246722221) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.103010907769203,-0.024850420653820,0.082469202578068,0.064123466610909,-0.077127531170845,-0.091289296746254,0.073185428977013,0.045412313193083,-0.057362269610167,-0.057825352996588,-0.162360444664955,-0.381392896175385,0.060260064899921,-0.122626632452011,0.020618950948119,0.041037421673536) * MODEL10_texOff(vec2(0,0));
res += mat4(0.017312347888947,-0.037494868040085,0.026610445231199,-0.091255292296410,0.000164615383255,-0.166268572211266,0.133811309933662,-0.038206014782190,0.016876382753253,0.105667196214199,0.074336864054203,0.046186123043299,-0.089092217385769,0.162316441535950,0.231496125459671,0.096074216067791) * MODEL10_texOff(vec2(0,1));
res += mat4(0.182487025856972,-0.200008913874626,-0.181189119815826,-0.040136877447367,0.057875838130713,0.033935654908419,-0.022783683612943,0.013215480372310,0.007785127498209,-0.013692140579224,-0.090257458388805,0.039951100945473,0.034948840737343,-0.098084136843681,-0.138797670602798,-0.090733140707016) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.042845167219639,-0.042468063533306,-0.051673151552677,-0.117671929299831,0.098221816122532,-0.117642372846603,0.034605085849762,0.147983521223068,-0.012409538961947,0.027899261564016,0.205971166491508,0.059231340885162,0.180046126246452,0.137788280844688,0.087726078927517,-0.067759670317173) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.057271223515272,0.007142986170948,0.012277322821319,0.010611535049975,-0.079883150756359,-0.230682179331779,0.048580024391413,0.026965612545609,0.066018320620060,0.064559802412987,0.088863015174866,0.097942702472210,0.194662109017372,-0.068077422678471,0.244752213358879,0.105562470853329) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.026336802169681,0.013532279990613,0.103599868714809,-0.048580963164568,-0.008898564614356,0.104391708970070,0.000502182287164,0.138199105858803,-0.009303337894380,-0.026940593495965,-0.200087040662766,-0.198267981410027,0.013232566416264,0.061069313436747,0.029172932729125,0.066585011780262) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.097519487142563,-0.023635750636458,0.086792185902596,0.033282335847616,-0.033139228820801,0.150924146175385,0.016258941963315,0.083556860685349,0.021687017753720,-0.027691114693880,-0.089430958032608,-0.251921504735947,0.055785845965147,-0.298985302448273,-0.128079742193222,-0.176354333758354) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.002971062436700,0.071710824966431,-0.059271838515997,0.106338679790497,0.006581139285117,0.106725230813026,0.134814187884331,-0.283062130212784,-0.064075842499733,-0.036518875509501,-0.004112440161407,-0.207136049866676,-0.074761182069778,0.114733412861824,-0.071868136525154,-0.098788090050220) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.001646700082347,0.063592031598091,0.057273156940937,0.092245608568192,0.010494631715119,0.030839202925563,-0.000066649867222,-0.077670663595200,-0.053885523229837,0.044464036822319,-0.393837422132492,-0.241023048758507,-0.003239091252908,0.120431810617447,-0.009227083995938,0.090771436691284) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.022288525477052,0.004002490080893,-0.163740247488022,0.076659232378006,0.052151922136545,0.127501219511032,-0.013805149123073,0.080131813883781,0.010243162512779,-0.161413297057152,-0.187272742390633,-0.495510280132294,0.041899230331182,0.199241891503334,0.340179413557053,-0.203851103782654) * MODEL11_texOff(vec2(0,0));
res += mat4(0.004412156064063,-0.101844482123852,-0.030350159853697,-0.123694375157356,-0.020779648795724,0.142167404294014,-0.050361674278975,0.052066780626774,-0.007181705906987,-0.053256079554558,-0.159845888614655,-0.410383939743042,0.024685259908438,0.224751994013786,0.010589041747153,-0.442055076360703) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.030740426853299,0.006403626874089,-0.033161588013172,0.039526533335447,0.038828581571579,-0.042086169123650,-0.114391110837460,0.074810959398746,0.001094850595109,-0.137963637709618,-0.309428244829178,-0.164494842290878,0.016851652413607,-0.084991447627544,0.089525446295738,0.063194222748280) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.092579402029514,-0.085423991084099,0.160707846283913,-0.194705754518509,0.124745756387711,0.060564920306206,0.036860950291157,0.016605010256171,0.052817784249783,0.117426574230194,-0.359158635139465,-0.220025971531868,0.037081982940435,-0.229767933487892,0.331093132495880,0.177641361951828) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.056985188275576,0.156614661216736,0.019016649574041,0.017404517158866,-0.017686495557427,0.162512317299843,-0.099802419543266,0.137881964445114,-0.060619782656431,-0.057626914232969,-0.043731682002544,-0.161544412374496,-0.136678367853165,0.016481621190906,-0.167754471302032,-0.105103783309460) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.137982115149498,0.103320568799973,0.062559358775616,0.004335363395512,0.128015354275703,-0.099121935665607,-0.074802145361900,-0.023418672382832,-0.071420311927795,0.100886769592762,0.042772453278303,0.117389939725399,-0.027194730937481,-0.096893548965454,-0.126275181770325,0.025512961670756) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.017217384651303,-0.030305588617921,0.010332507081330,-0.097825035452843,0.013456067070365,-0.050648216158152,0.212357178330421,0.003404324874282,-0.000397687836085,0.190501436591148,0.028471050783992,-0.071351662278175,-0.072774760425091,-0.110818460583687,0.025949612259865,-0.127763390541077) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.021414656192064,-0.114724874496460,-0.081371270120144,0.074661396443844,0.023317342624068,-0.116182424128056,0.057923823595047,0.103794157505035,-0.043832652270794,0.065885141491890,0.010702209547162,-0.054177947342396,-0.002737928181887,-0.122461728751659,0.062900774180889,-0.098308198153973) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.130256891250610,-0.008549747988582,-0.186557412147522,-0.098101042211056,0.132088676095009,0.091496117413044,-0.191260859370232,-0.064259059727192,-0.052091028541327,0.119318515062332,0.183633059263229,0.006818904541433,0.044138532131910,-0.334360539913177,-0.273404777050018,-0.022668285295367) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.035056006163359,-0.049273673444986,-0.018578507006168,0.088083788752556,0.328937649726868,0.053291544318199,0.174841210246086,-0.070415727794170,-0.002774824388325,0.077295444905758,-0.032842975109816,-0.049550972878933,0.020994782447815,-0.020269408822060,0.109090678393841,-0.095677316188812) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.160584181547165,0.271455407142639,-0.072753354907036,0.068193756043911,-0.007481081876904,-0.015187226235867,0.008295465260744,0.049770954996347,-0.042265851050615,0.080153055489063,0.076603218913078,-0.042008098214865,0.115297593176365,-0.140261977910995,0.093478001654148,-0.219545409083366) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.020653693005443,0.020520318299532,0.045162580907345,-0.160795822739601,0.149322375655174,0.036797095090151,-0.061900537461042,-0.073246993124485,0.080849707126617,0.052022214978933,0.033870611339808,0.026123251765966,0.000644238840323,-0.014565321616828,-0.074917711317539,-0.038241855800152) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.025075638666749,0.087270870804787,-0.092416830360889,-0.019520707428455,0.322863638401031,0.099805772304535,0.057064354419708,0.033789180219173,-0.084298484027386,0.139154314994812,-0.121183536946774,-0.054319970309734,0.136996820569038,-0.108397349715233,0.144848689436913,-0.227093264460564) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.035248573869467,-0.133546516299248,-0.006619864143431,0.112215436995029,0.011965729296207,-0.094211459159851,-0.089839681982994,-0.216579005122185,0.095375493168831,-0.032055690884590,-0.093234971165657,0.058396130800247,-0.121909670531750,-0.068050086498260,0.113576643168926,-0.238635614514351) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.007644276134670,-0.026237046346068,-0.085075296461582,-0.020519020035863) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL4
//!DESC [AiUpscale_HQ_3x_Photo] mapping 3_4

vec4 hook()
{
vec4 res = vec4(0.003624141914770,0.031113695353270,0.211696416139603,-0.148750901222229);
res += mat4(0.102114573121071,0.052120968699455,0.052623696625233,0.064888887107372,0.215712353587151,-0.027148868888617,-0.114618510007858,-0.142466664314270,0.126794934272766,-0.019971949979663,0.004844950046390,-0.178238555788994,0.068027302622795,0.026278218254447,-0.007978403940797,0.076618306338787) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.000386540574254,-0.012996108271182,-0.006168791092932,0.131653666496277,0.016748886555433,-0.112157791852951,0.009990463033319,0.049506418406963,-0.007513000629842,-0.113111011683941,0.052255928516388,-0.002441382035613,-0.009693004190922,-0.054618462920189,0.041351366788149,0.046746313571930) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.054044246673584,0.031331874430180,0.029415018856525,0.066096998751163,0.033385522663593,-0.013270009309053,0.070427864789963,0.089328750967979,0.013828367926180,-0.091936655342579,0.026220986619592,-0.162009626626968,0.011425135657191,-0.059074744582176,0.046815577894449,0.024531235918403) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.055487882345915,-0.000906037166715,-0.155905470252037,0.061561908572912,0.046394083648920,-0.209785804152489,-0.106607042253017,0.020396808162332,-0.151739865541458,-0.053642876446247,-0.017823884263635,-0.099256344139576,-0.001763617736287,-0.185638874769211,0.084720708429813,-0.054794076830149) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.167571917176247,0.155460074543953,-0.051352988928556,0.132618576288223,0.106571361422539,-0.144450470805168,-0.253552764654160,0.155007496476173,0.074604600667953,-0.199171096086502,0.067333303391933,-0.084902659058571,0.036276053637266,-0.078700743615627,0.048284996300936,-0.010954284109175) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.189055353403091,0.034765694290400,-0.048751704394817,0.021740419790149,-0.015798708423972,-0.078269548714161,-0.080479279160500,0.077928192913532,0.125636756420135,-0.101913087069988,0.055665623396635,-0.031186748296022,0.026872929185629,-0.107478603720665,-0.010186290368438,-0.032822910696268) * MODEL7_texOff(vec2(0,1));
res += mat4(0.252059668302536,-0.098010025918484,-0.165322870016098,0.054857607930899,-0.047264989465475,-0.099288545548916,-0.076221264898777,-0.093018449842930,-0.114818520843983,-0.128639400005341,-0.056730665266514,-0.024062123149633,-0.028471641242504,-0.126625195145607,0.085674457252026,0.040164276957512) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.073667302727699,0.260529935359955,-0.026300327852368,0.105823114514351,0.019642142578959,0.091037079691887,-0.018400194123387,0.033683121204376,-0.044784072786570,0.023761231452227,-0.032674148678780,-0.007352945394814,0.092594042420387,-0.084241986274719,0.039801172912121,0.204026326537132) * MODEL7_texOff(vec2(1,0));
res += mat4(0.131122455000877,0.145384356379509,-0.056073639541864,-0.046085041016340,-0.033040408045053,0.013971022330225,0.074667841196060,0.014021561481059,0.084790714085102,-0.011050641536713,0.033492796123028,-0.042762186378241,-0.055764399468899,-0.070250980556011,-0.031388018280268,0.090966694056988) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.114161401987076,-0.034106988459826,-0.028689520433545,-0.084298655390739,-0.049297500401735,0.019231488928199,0.025022361427546,0.079647004604340,0.025952344760299,0.014211675152183,-0.088427610695362,0.051144398748875,-0.022380476817489,-0.027382131665945,0.023535417392850,-0.093364030122757) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.253549993038177,0.061100792139769,-0.024845391511917,-0.173953771591187,0.108143813908100,-0.057236902415752,-0.112376436591148,-0.028448026627302,-0.078356638550758,-0.003015233436599,0.024131303653121,0.010582217015326,0.070138745009899,-0.066313810646534,-0.152810782194138,-0.117843069136143) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.008965769782662,0.058225620537996,0.090767830610275,0.025935810059309,-0.014525998383760,-0.137651324272156,-0.053211823105812,-0.018190862610936,0.065892264246941,-0.111647292971611,0.056507978588343,-0.103664144873619,-0.022419599816203,-0.117301210761070,-0.061686731874943,-0.136555910110474) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.148160621523857,0.032067097723484,-0.064342200756073,-0.025792339816689,-0.053299214690924,0.028307722881436,-0.346002250909805,-0.119261600077152,-0.008088553324342,-0.056908793747425,0.151255458593369,0.058465577661991,-0.084130249917507,0.057588011026382,0.028668364509940,0.075278893113136) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.012366923503578,-0.139538347721100,-0.122727155685425,-0.063232876360416,0.075405098497868,0.161111682653427,-0.053412172943354,0.236344829201698,0.007814986631274,-0.046531982719898,0.302138388156891,0.106023356318474,-0.030737934634089,-0.195675551891327,0.293336510658264,0.010051856748760) * MODEL8_texOff(vec2(0,0));
res += mat4(0.110871851444244,-0.141332387924194,0.093607380986214,-0.052171614021063,0.036975741386414,-0.237063765525818,-0.068127930164337,0.049915395677090,-0.079913124442101,-0.086032651364803,0.156716123223305,0.055768959224224,0.066729478538036,0.027770139276981,-0.038026232272387,-0.065061658620834) * MODEL8_texOff(vec2(0,1));
res += mat4(0.028551546856761,-0.029920788481832,-0.065790101885796,0.029136950150132,0.123591050505638,-0.004678339231759,-0.054132979363203,0.125759825110435,-0.072371333837509,0.004532184451818,-0.011931517161429,0.011705048382282,0.160825997591019,0.098859995603561,-0.045413345098495,-0.108804762363434) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.062811590731144,-0.152319133281708,0.092375017702579,-0.025460746139288,-0.164272770285606,0.128172546625137,-0.026651551946998,0.090233594179153,0.144874826073647,-0.044992700219154,-0.006747294217348,0.017541673034430,-0.091213949024677,-0.041812170296907,0.053608451038599,0.002297425642610) * MODEL8_texOff(vec2(1,0));
res += mat4(0.083503320813179,0.024876564741135,0.023297499865294,0.027254885062575,0.051131207495928,0.007013330701739,0.030091000720859,0.019189791753888,-0.110027216374874,0.028969317674637,-0.159401327371597,0.137385264039040,-0.079692110419273,0.055943872779608,-0.007676729001105,-0.005002743098885) * MODEL8_texOff(vec2(1,1));
res += mat4(0.120032683014870,-0.073455169796944,-0.003110310994089,-0.131736606359482,0.006482144352049,-0.133810296654701,0.096329443156719,0.035944700241089,0.260273158550262,-0.082280553877354,0.061628919094801,-0.030316758900881,0.089845158159733,-0.015619555488229,-0.004933022893965,0.008450686000288) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.010352442972362,-0.038470491766930,-0.034486107528210,0.103316798806190,-0.008932615630329,-0.067120909690857,0.130675986409187,0.092678926885128,-0.144858986139297,-0.049144148826599,0.010397896170616,-0.125203177332878,-0.014261561445892,0.011503760702908,0.042352903634310,0.142286583781242) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.061159942299128,-0.030563365668058,0.014455440454185,-0.019991379231215,0.005257709417492,-0.041212525218725,0.033849667757750,0.085694566369057,0.121789850294590,-0.014869787730277,-0.051972195506096,-0.119893267750740,-0.064077652990818,-0.045824527740479,0.129841804504395,-0.030183402821422) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.261747270822525,-0.028839360922575,-0.116734996438026,0.030740646645427,0.002769819460809,-0.062652051448822,0.067492812871933,-0.152477011084557,0.086982779204845,0.213706567883492,0.028791636228561,0.171684920787811,-0.148645058274269,0.107976637780666,0.038105815649033,-0.129155382514000) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.366340249776840,-0.034109689295292,-0.014506042934954,0.112376675009727,-0.058177780359983,0.031142449006438,0.021503176540136,0.117475643754005,0.036222796887159,-0.069670088589191,-0.046489883214235,0.157259479165077,-0.050866398960352,0.176943033933640,-0.012239307165146,-0.054443664848804) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.108220130205154,0.011025767773390,-0.044646915048361,0.034601051360369,0.060499358922243,-0.069559730589390,0.004729590844363,0.127163678407669,0.013419934548438,0.146529361605644,0.022961979731917,-0.031832255423069,0.181433707475662,0.011455375701189,0.053888004273176,0.144658476114273) * MODEL9_texOff(vec2(0,1));
res += mat4(0.287372082471848,0.150370255112648,0.078197792172432,-0.068605564534664,-0.102056309580803,0.016350876539946,-0.002284733345732,-0.186665222048759,0.099903576076031,0.028448976576328,-0.077889941632748,0.036951065063477,0.048019465059042,-0.134274154901505,-0.029284084215760,-0.175342336297035) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.161482185125351,0.104282945394516,-0.179569497704506,0.103711336851120,0.023651275783777,0.004498207475990,0.081936329603195,-0.188849657773972,0.168261349201202,-0.063181810081005,-0.114794075489044,0.082403361797333,-0.036807853728533,-0.010012378916144,-0.199270084500313,-0.166021376848221) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.161866977810860,0.092733308672905,-0.016874140128493,-0.013598189689219,-0.055230759084225,-0.097516193985939,0.066986158490181,-0.056626923382282,0.229702219367027,0.085543349385262,-0.149376273155212,-0.005849869456142,0.067675605416298,-0.237259179353714,-0.139119639992714,0.174285858869553) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.181979596614838,0.106180056929588,-0.010248031467199,0.007606488652527,0.203511044383049,-0.164258494973183,-0.007705536205322,-0.187369763851166,-0.130072727799416,-0.041528929024935,0.048984713852406,0.044616766273975,0.006192635744810,0.099578909575939,0.095745131373405,0.149775832891464) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.157903820276260,0.161617845296860,-0.053554929792881,-0.083542518317699,0.230975762009621,-0.034001659601927,-0.069311872124672,0.018974158912897,-0.251707643270493,-0.080785892903805,0.030563864856958,0.055120315402746,-0.005455350037664,0.114913247525692,-0.064278922975063,-0.070889301598072) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.048460908234119,-0.004579647444189,-0.071496367454529,-0.020909192040563,0.104310534894466,-0.067242868244648,0.047546792775393,-0.082599818706512,-0.143232718110085,0.025707328692079,0.004991743713617,0.039791978895664,0.083848804235458,-0.039466731250286,-0.062582314014435,0.093936406075954) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.202995836734772,0.104395464062691,-0.039678640663624,-0.135841384530067,-0.087490633130074,-0.291123509407043,0.024346720427275,0.051528241485357,-0.272705137729645,-0.004380525555462,0.052215445786715,0.055437341332436,-0.034366365522146,-0.146888896822929,0.092782460153103,0.160212621092796) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.049977667629719,0.245073631405830,0.082339935004711,-0.039417136460543,-0.064020827412605,-0.072817988693714,-0.035413160920143,-0.005937559995800,-0.280799239873886,0.069045983254910,0.054407469928265,-0.001530255191028,-0.019521797075868,0.146675974130630,0.174871250987053,-0.165443286299706) * MODEL10_texOff(vec2(0,0));
res += mat4(0.078571416437626,0.080983802676201,0.065201669931412,0.000072436450864,0.283759653568268,-0.032034989446402,0.022153411060572,0.035646677017212,-0.289967566728592,0.010901426896453,0.000944294326473,-0.060764282941818,0.172687396407127,0.055590905249119,-0.059326831251383,-0.091848865151405) * MODEL10_texOff(vec2(0,1));
res += mat4(0.004447330720723,0.262853801250458,-0.102641582489014,-0.054384250193834,-0.075048938393593,0.020389156416059,0.022968554869294,-0.017144225537777,-0.278596341609955,0.020614326000214,0.100428655743599,0.009871371090412,-0.035606622695923,-0.065764822065830,0.156735494732857,-0.035085186362267) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.138762712478638,0.382753103971481,0.024917151778936,0.022917859256268,0.082011461257935,-0.107072316110134,-0.043473642319441,0.095325067639351,-0.182952448725700,-0.089199505746365,-0.175942629575729,0.079448975622654,-0.042806334793568,0.170356333255768,0.008363270200789,-0.061144825071096) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.192365467548370,-0.055293258279562,0.070879556238651,0.023555232211947,0.078551083803177,0.001235581585206,-0.048962559551001,0.022201810032129,-0.295997440814972,0.042640380561352,-0.054508298635483,-0.061091516166925,0.006105393636972,-0.143162697553635,0.010656324215233,0.022953864187002) * MODEL10_texOff(vec2(1,1));
res += mat4(0.040095239877701,0.047574933618307,-0.053495936095715,-0.063111506402493,-0.226905003190041,-0.082341253757477,-0.022017741575837,-0.117134414613247,-0.060396354645491,0.043810568749905,0.076895892620087,0.067607790231705,-0.005589430686086,-0.053163234144449,0.081352747976780,-0.007900404743850) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.077826537191868,-0.051641948521137,-0.095549799501896,-0.004715329967439,0.006747400853783,0.172275856137276,-0.010359851643443,0.113021031022072,-0.292215347290039,0.090012907981873,0.139992311596870,0.011389981955290,-0.172231718897820,-0.059558127075434,0.041263356804848,-0.043530441820621) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.080265671014786,0.015071026980877,-0.066982299089432,0.053089320659637,-0.104500770568848,0.123598851263523,-0.042305976152420,0.084669180214405,-0.069667331874371,-0.061933342367411,0.032770637422800,-0.052380234003067,0.000736145884730,-0.021886417642236,-0.040005423128605,-0.002626883797348) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.086494356393814,-0.102527454495430,0.024788098409772,-0.158726036548615,0.147068083286285,0.060689304023981,-0.014269376173615,-0.042061395943165,-0.155165910720825,-0.009882349520922,0.002370853908360,0.113604001700878,0.113166302442551,-0.177226424217224,-0.158852443099022,-0.048037931323051) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.034008532762527,0.112196937203407,-0.102921649813652,0.276036590337753,-0.156995102763176,-0.166952401399612,-0.055324256420135,-0.001709654345177,-0.156573623418808,-0.098093599081039,0.058257650583982,0.019518721848726,0.165837556123734,0.034725107252598,-0.889850974082947,0.086936406791210) * MODEL11_texOff(vec2(0,0));
res += mat4(0.147601023316383,-0.045032110065222,-0.089847728610039,0.066492542624474,-0.135102391242981,-0.013506661169231,0.020172514021397,-0.006122854072601,0.111256740987301,-0.052988015115261,0.078344583511353,-0.118191860616207,-0.448047697544098,-0.177884161472321,-0.043730463832617,-0.012236534617841) * MODEL11_texOff(vec2(0,1));
res += mat4(0.133253157138824,-0.036599460989237,-0.061601202934980,-0.090168252587318,-0.043004084378481,0.045028749853373,-0.081852734088898,0.015952220186591,-0.229634806513786,-0.053053986281157,-0.060015957802534,0.035580556839705,-0.129960611462593,-0.163423240184784,-0.059176992624998,0.067523032426834) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.004785376600921,0.001819474506192,-0.154161006212234,-0.045075062662363,-0.057511676102877,0.159793198108673,0.015785407274961,-0.135213434696198,-0.211509779095650,-0.068322479724884,-0.014335028827190,-0.179211989045143,0.213709980249405,0.069248713552952,-0.306770235300064,0.058398853987455) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.209085464477539,0.101400330662727,0.106826506555080,-0.062252089381218,0.017055587843060,-0.002511004218832,0.010933782905340,0.061533741652966,-0.205847039818764,0.122336789965630,0.011487254872918,-0.184054836630821,0.300197392702103,0.189079374074936,-0.002866814611480,0.073658615350723) * MODEL11_texOff(vec2(1,1));
res += mat4(0.087933100759983,0.009052554145455,-0.015649903565645,0.023449979722500,-0.161721423268318,-0.053963810205460,0.178843617439270,0.061281576752663,-0.026306882500648,-0.004477821290493,0.029014198109508,0.150654792785645,0.010423985309899,0.085606567561626,-0.093171112239361,-0.057697601616383) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.111960537731647,-0.054738488048315,0.045714676380157,-0.067841656506062,0.137659877538681,0.147895380854607,-0.139623060822487,0.007880955003202,-0.024202585220337,0.084971055388451,0.060034077614546,0.076137058436871,0.063007608056068,-0.021605391055346,0.019107051193714,0.131857514381409) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.035486947745085,0.058346942067146,0.044602114707232,0.029412813484669,0.032289594411850,0.068118683993816,-0.055662706494331,-0.079463370144367,-0.025777591392398,0.103930853307247,-0.022164130583405,0.110783718526363,0.001792034832761,0.083358950912952,-0.011860026977956,0.003676580032334) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.071973539888859,0.122549608349800,0.099492177367210,-0.232641264796257,-0.005948285572231,-0.038209494203329,0.064691029489040,-0.052662689238787,0.074535138905048,-0.152192994952202,-0.125744223594666,0.000377521093469,-0.041254993528128,-0.123978242278099,0.330790758132935,-0.074575483798981) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.046230312436819,-0.019647905603051,0.178286671638489,-0.049806457012892,0.092828392982483,0.223080798983574,-0.065831422805786,-0.014544336125255,-0.062822394073009,0.088268898427486,-0.155956298112869,0.221779018640518,-0.084555745124817,0.227372765541077,0.051332872360945,-0.008779051713645) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.060775697231293,-0.054484061896801,0.053970232605934,-0.117755316197872,-0.048538904637098,-0.061641022562981,-0.064687922596931,-0.040528953075409,-0.027827546000481,-0.031801458448172,-0.056487455964088,-0.130482703447342,-0.127460867166519,-0.051780775189400,-0.013960172422230,0.066516295075417) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.186022952198982,0.011018249206245,0.023363996297121,-0.177107915282249,0.157889127731323,0.120549179613590,-0.168457180261612,-0.046310897916555,-0.000758971553296,0.072646856307983,-0.110888384282589,-0.042815726250410,-0.106256835162640,0.169019699096680,0.009353339672089,-0.222900614142418) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.064485833048820,0.084026865661144,-0.092496618628502,-0.255221992731094,-0.021294901147485,-0.017593495547771,-0.003129008226097,0.081145964562893,0.137340843677521,0.121563456952572,-0.030962511897087,0.018122997134924,-0.130612596869469,-0.094922296702862,0.056628350168467,-0.096009448170662) * MODEL12_texOff(vec2(1,0));
res += mat4(0.117986485362053,-0.095764420926571,-0.076019532978535,0.006755179725587,-0.081844791769981,-0.046341560781002,-0.019011186435819,-0.060347199440002,0.186029896140099,-0.001341035705991,0.010355959646404,0.042158272117376,-0.034307710826397,-0.048569608479738,-0.007762081921101,0.105457313358784) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.100806392729282,0.293026298284531,0.078512683510780,0.302388072013855) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL5
//!DESC [AiUpscale_HQ_3x_Photo] mapping 3_5

vec4 hook()
{
vec4 res = vec4(-0.174669563770294,-0.007594460155815,0.149624571204185,0.027666559442878);
res += mat4(0.164059758186340,0.328198999166489,-0.036095380783081,0.068959318101406,-0.144740164279938,-0.134519875049591,0.023411888629198,-0.027634767815471,-0.035577680915594,-0.014012131839991,0.009829971939325,0.020123131573200,-0.071524314582348,0.052379831671715,-0.012310937978327,-0.129675582051277) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.010842819698155,0.025186434388161,-0.001807709340937,0.018974207341671,0.141976997256279,-0.105349265038967,-0.045463729649782,0.064428433775902,-0.060375753790140,0.064538329839706,-0.004760058131069,-0.007901379838586,-0.138303562998772,-0.042045384645462,0.004907225724310,-0.079501487314701) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.141942441463470,0.123143978416920,-0.030554026365280,0.167324498295784,-0.055753819644451,-0.175280466675758,0.016433600336313,-0.029239241033792,-0.087195247411728,-0.028234813362360,0.010204852558672,0.029718190431595,-0.041762482374907,-0.009874307550490,0.025850279256701,-0.069340780377388) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.042311601340771,0.130535706877708,0.009530991315842,-0.130989089608192,0.008526485413313,-0.201008021831512,0.102350369095802,-0.153040364384651,-0.220053002238274,-0.050378829240799,0.044980835169554,-0.150876641273499,-0.197805657982826,-0.144599676132202,-0.016034351661801,0.102709807455540) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.098363026976585,-0.179873719811440,-0.053597643971443,0.086143925786018,-0.075833283364773,-0.220267057418823,-0.076036892831326,-0.003243802580982,-0.178317904472351,-0.139619201421738,-0.023150237277150,-0.120562613010406,-0.225341722369194,-0.119455717504025,-0.003384241368622,-0.147828981280327) * MODEL7_texOff(vec2(0,0));
res += mat4(0.012734727002680,-0.022522445768118,-0.033285770565271,0.122727461159229,-0.011462754569948,-0.076085254549980,-0.031194640323520,0.013337520882487,-0.049619268625975,-0.006380794104189,0.023234903812408,0.042554032057524,-0.239058822393417,-0.035310976207256,0.040467508137226,0.028483590111136) * MODEL7_texOff(vec2(0,1));
res += mat4(0.014684647321701,0.127185940742493,0.016748430207372,0.008449789136648,-0.014013123698533,-0.115262940526009,-0.049608919769526,-0.086310207843781,-0.051064450293779,-0.027836389839649,0.080750048160553,-0.093576267361641,-0.085265040397644,-0.492750704288483,0.057211238890886,0.001663294620812) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.133905246853828,-0.001797039178200,-0.015636118128896,-0.033783219754696,-0.042900130152702,0.068648397922516,0.065973907709122,-0.103094041347504,0.017156202346087,-0.114734552800655,0.016855413094163,-0.147423744201660,-0.173114731907845,-0.124483488500118,0.102384857833385,-0.133462488651276) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.043811570852995,-0.024525487795472,0.011365367099643,0.035790041089058,0.048145666718483,0.024414485320449,0.005889133550227,-0.015454035252333,-0.118648551404476,-0.049772888422012,0.028268624097109,0.016517885029316,-0.194165632128716,0.039544727653265,0.053845148533583,-0.027774197980762) * MODEL7_texOff(vec2(1,1));
res += mat4(0.126540482044220,0.258017778396606,-0.053150542080402,-0.144947603344917,-0.061200086027384,0.360654622316360,-0.027102285996079,-0.155316397547722,-0.059340391308069,-0.014112827368081,0.045669339597225,-0.038278613239527,-0.043069936335087,0.069051183760166,0.003174627199769,0.016280882060528) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.104926265776157,0.098681353032589,-0.053788837045431,-0.156204998493195,0.081871248781681,-0.040413275361061,-0.211908951401711,0.128784954547882,0.024428751319647,-0.003122054040432,-0.028827875852585,-0.017648871988058,-0.002804088871926,-0.013615267351270,-0.083047755062580,0.031084520742297) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.007669723127037,-0.049795497208834,-0.014690835960209,0.021922821179032,-0.004364002961665,-0.102391593158245,-0.007300998549908,0.105123005807400,-0.090121611952782,0.036374911665916,-0.081137783825397,0.100895278155804,-0.009904257953167,0.080525353550911,-0.010348630137742,-0.018274025991559) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.001430777483620,0.074051737785339,-0.091472744941711,-0.027587790042162,0.014798703603446,0.180323511362076,-0.104310594499111,-0.160168215632439,0.079045914113522,0.057365424931049,0.014777925796807,-0.013442710973322,-0.004812246188521,-0.000986135331914,0.044488295912743,-0.015481602400541) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.085973121225834,0.027771951630712,-0.055472671985626,0.019712565466762,-0.034761212766171,-0.141063377261162,0.203029170632362,-0.897141039371490,0.120751954615116,0.042401023209095,0.046582035720348,0.156466320157051,0.046544436365366,0.065510809421539,-0.028480263426900,-0.062906719744205) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.038214713335037,-0.078732661902905,-0.070009991526604,0.087661206722260,0.022221986204386,-0.024929115548730,-0.114908553659916,-0.005085086449981,0.084356494247913,-0.073318354785442,0.053397566080093,-0.022604232653975,0.062821611762047,-0.041957855224609,-0.014760190621018,0.111410766839981) * MODEL8_texOff(vec2(0,1));
res += mat4(0.054133627563715,-0.034198097884655,-0.022142337635159,0.010447709821165,0.018876301124692,0.011782798916101,0.000771398306824,-0.023401523008943,0.024646196514368,0.019732946529984,-0.047574028372765,-0.046798646450043,-0.003950800281018,0.088990055024624,-0.001466981717385,-0.075853429734707) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.088990688323975,0.044061876833439,-0.003298193914816,-0.213738590478897,-0.096465244889259,-0.011576351709664,-0.040251713246107,-0.144687309861183,-0.034401983022690,0.057218883186579,-0.110372990369797,-0.168932795524597,0.007151760160923,-0.182807058095932,0.017502386122942,0.034973774105310) * MODEL8_texOff(vec2(1,0));
res += mat4(0.114533588290215,-0.086015887558460,0.011244642548263,0.030820259824395,-0.095324650406837,0.009449082426727,-0.018029630184174,-0.037083167582750,0.180898010730743,0.092952936887741,-0.108877673745155,-0.092749893665314,0.061961438506842,-0.068548634648323,-0.010599634610116,0.047344952821732) * MODEL8_texOff(vec2(1,1));
res += mat4(0.030700258910656,0.136272877454758,-0.030455032363534,0.021487776190042,0.025794738903642,0.064010776579380,-0.021224454045296,-0.034874420613050,0.057846754789352,0.147996097803116,-0.089984610676765,0.079140402376652,-0.063328228890896,0.154308289289474,0.040913186967373,0.062624551355839) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.000040758459363,-0.089355789124966,-0.034066174179316,0.096591383218765,0.045345872640610,-0.062339570373297,-0.011682176031172,-0.041461728513241,0.070524677634239,0.160330042243004,-0.002528152661398,0.077692285180092,-0.118952102959156,-0.180408403277397,-0.040102794766426,-0.091328077018261) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.083893060684204,-0.033488281071186,-0.014792946167290,0.053088612854481,-0.049164488911629,-0.008199814707041,0.014627213589847,-0.036286748945713,-0.022655671462417,-0.044835098087788,-0.070957243442535,0.093125745654106,0.191751122474670,-0.088104359805584,-0.126575037837029,-0.023579876869917) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.101405560970306,-0.063456460833549,-0.080293014645576,0.079476334154606,-0.020902629941702,-0.037970382720232,-0.035269759595394,-0.013271430507302,-0.037192557007074,0.006221290212125,-0.065571092069149,-0.139496594667435,-0.058950301259756,0.035263378173113,0.051173694431782,-0.065210260450840) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.231042385101318,-0.219182103872299,0.068337716162205,-0.052075322717428,-0.014369421638548,-0.147138282656670,0.033238172531128,-0.164051115512848,0.051571007817984,-0.078042499721050,-0.013920621015131,-0.135972082614899,-0.054561398923397,0.001326045952737,-0.104465119540691,0.046749565750360) * MODEL9_texOff(vec2(0,0));
res += mat4(0.046519167721272,0.021796386688948,0.011240715160966,-0.020127562806010,0.287148475646973,-0.048386797308922,0.058794107288122,-0.016241787001491,0.015461135655642,0.075316272675991,-0.174031913280487,-0.075709223747253,0.258106738328934,-0.117390088737011,-0.105729639530182,0.015237802639604) * MODEL9_texOff(vec2(0,1));
res += mat4(0.073893010616302,-0.234959051012993,0.002426001941785,-0.208676651120186,-0.048212565481663,-0.002795961452648,0.026508675888181,0.097329229116440,0.079253844916821,-0.062381416559219,-0.003929144237190,-0.205178484320641,0.003166880924255,-0.078440032899380,-0.014471314847469,-0.028777074068785) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.117159232497215,-0.117926307022572,-0.466856092214584,0.220583453774452,0.102693580091000,0.064663454890251,0.070030316710472,-0.012384425848722,0.141387611627579,-0.144306689500809,-0.059020515531301,-0.258004724979401,0.026340518146753,-0.105279572308064,-0.080844774842262,-0.025064921006560) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.032807797193527,0.092529430985451,0.100889354944229,0.129201397299767,0.090243279933929,0.072627037763596,0.042592663317919,0.007694372441620,0.076072849333286,-0.040839236229658,-0.063591539859772,-0.195850908756256,-0.043290153145790,-0.143695220351219,-0.022367062047124,-0.038400240242481) * MODEL9_texOff(vec2(1,1));
res += mat4(0.122012175619602,0.084184296429157,-0.019056182354689,-0.069184571504593,0.092797867953777,-0.051741730421782,-0.065867364406586,0.177576318383217,-0.007692697457969,0.011692753061652,0.007662221789360,0.065581761300564,-0.030965594574809,0.036675702780485,0.010336576960981,-0.024905730038881) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.002713271649554,-0.000161861535162,-0.075349718332291,0.031698156148195,-0.020221581682563,-0.159055396914482,-0.125191003084183,-0.036702182143927,-0.024396212771535,-0.064044870436192,0.054653525352478,-0.074189305305481,-0.162749513983727,-0.184649601578712,-0.003092491999269,0.107814952731133) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.008100355975330,0.018125135451555,-0.015574748627841,0.031922623515129,0.039658378809690,-0.131257280707359,-0.021991837769747,0.077756077051163,0.101923488080502,0.144283831119537,0.031852606683969,-0.008807717822492,-0.059712581336498,0.180598273873329,0.038035344332457,0.070574164390564) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.245773255825043,-0.031724486500025,-0.088595993816853,-0.004679753910750,-0.166289463639259,-0.051292728632689,-0.053122140467167,-0.125517725944519,0.042844168841839,0.020201807841659,0.029643526300788,0.015154930762947,0.001084292773157,-0.135181441903114,0.030218502506614,-0.119823262095451) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.057445675134659,0.037873908877373,-0.136770576238632,0.055366646498442,-0.069764427840710,-0.067320421338081,-0.067390881478786,-0.158264249563217,0.007882160134614,-0.031237876042724,0.067275792360306,0.050885003060102,-0.233881369233131,0.263402521610260,-0.078126087784767,0.065338864922523) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.068757839500904,-0.020253023132682,-0.016711914911866,-0.039424166083336,0.122442938387394,0.004414714872837,0.032143671065569,0.085184119641781,0.111591756343842,-0.066343732178211,0.083661571145058,-0.040870975703001,-0.152057483792305,-0.157037541270256,-0.109413765370846,0.140072122216225) * MODEL10_texOff(vec2(0,1));
res += mat4(0.070487603545189,-0.178526997566223,-0.070179201662540,-0.116183422505856,0.033229172229767,-0.195991039276123,-0.017385728657246,-0.042987991124392,0.022326987236738,0.093305982649326,-0.012869304977357,0.062011763453484,-0.208169773221016,0.003627798520029,-0.007456405553967,0.007711316924542) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.063903845846653,-0.101528160274029,-0.099872276186943,0.051173191517591,-0.033161167055368,-0.022122174501419,-0.001853259396739,-0.057235628366470,0.022284623235464,-0.078374870121479,0.017411993816495,0.084056183695793,-0.215302079916000,-0.138370454311371,-0.070566222071648,-0.033340733498335) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.046893056482077,-0.002354662632570,0.056214857846498,0.025807192549109,-0.154381319880486,0.088291965425014,0.012285633943975,0.008143180049956,-0.002039144979790,-0.019718922674656,0.036738470196724,-0.014351373538375,-0.126104980707169,0.046149849891663,-0.023954769596457,0.030068991705775) * MODEL10_texOff(vec2(1,1));
res += mat4(0.026024792343378,-0.006262714974582,0.020495489239693,0.066842779517174,-0.043797686696053,0.115603670477867,0.025022225454450,0.081222079694271,0.071148715913296,-0.138592228293419,-0.019797138869762,-0.012135031633079,-0.001228451379575,-0.002714639762416,0.027242528274655,0.026902379468083) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.052780628204346,0.162584230303764,0.122886218130589,-0.123128235340118,0.157555058598518,-0.111529566347599,0.029312245547771,0.109207645058632,-0.069891087710857,-0.175806581974030,-0.035084158182144,0.134981557726860,0.136073499917984,0.310913771390915,0.019685773178935,0.087242111563683) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.057200286537409,-0.075955964624882,-0.008773206733167,-0.007847101427615,0.075067490339279,-0.191993057727814,-0.027147898450494,-0.037250179797411,-0.016412295401096,-0.089854598045349,0.019502272829413,0.076652757823467,0.071602009236813,0.041497182101011,-0.014049086719751,0.122407332062721) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.018984971567988,0.041109684854746,0.099614135921001,-0.004460064228624,0.014086573384702,-0.030638925731182,-0.060651767998934,0.238581985235214,-0.033412192016840,-0.187841758131981,0.028003158047795,-0.005678381305188,-0.115397661924362,0.155558392405510,0.007457609754056,-0.096254691481590) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.011503857560456,0.214603886008263,0.026704788208008,-0.027761809527874,-0.015521949157119,-0.087561734020710,-0.098123155534267,0.132818594574928,0.055682964622974,0.165655910968781,-0.040344797074795,-0.008612443692982,-0.033547468483448,0.053889203816652,-0.064641401171684,0.225607573986053) * MODEL11_texOff(vec2(0,0));
res += mat4(0.301627427339554,-0.092532239854336,-0.023060539737344,0.034534294158220,0.116304382681847,0.025651097297668,-0.155684441328049,0.018265414983034,0.016877826303244,0.010188337415457,0.004795024171472,0.058149881660938,-0.178884610533714,-0.003453650278971,-0.125129178166389,0.164691001176834) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.043885402381420,-0.046234443783760,-0.071013905107975,-0.025185208767653,0.044502172619104,-0.063505046069622,0.050649397075176,0.089796692132950,0.083710134029388,0.033402755856514,0.054724309593439,0.033101223409176,-0.102442234754562,-0.034662291407585,-0.090504102408886,0.029628453776240) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.115370079874992,-0.043484065681696,-0.030616780743003,0.178613960742950,-0.061082687228918,0.000650434347335,0.007502492982894,0.021292956545949,0.064210675656796,-0.013979967683554,-0.073677442967892,-0.320915162563324,-0.025013009086251,-0.004023889545351,0.070943377912045,-0.045837871730328) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.107614628970623,-0.096737906336784,0.078914999961853,-0.039961062371731,-0.006963901221752,0.162011951208115,-0.118838153779507,0.086236990988255,-0.009323988109827,0.010324971750379,0.034619983285666,0.053744141012430,-0.092883229255676,0.019478082656860,-0.295695960521698,-0.015094322152436) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.049213979393244,0.104937575757504,0.004354395903647,0.089231453835964,0.001121797715314,0.090328447520733,-0.016833327710629,-0.067916281521320,0.015373606234789,0.008530500344932,0.006291372235864,-0.033487547188997,-0.030760284513235,0.013204996474087,-0.005526251159608,-0.003808859502897) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.072336539626122,0.005825747735798,-0.012795668095350,-0.018399700522423,-0.067705124616623,0.195968419313431,-0.001006739446893,0.147553309798241,-0.153270542621613,-0.033730588853359,-0.026231911033392,0.087376378476620,-0.039318624883890,-0.013146569021046,0.038671009242535,0.001836308510974) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.153048291802406,0.007960157468915,0.004202561918646,-0.049263209104538,-0.050879988819361,-0.168258950114250,0.030717095360160,0.043625582009554,-0.141734242439270,-0.017820827662945,-0.061228904873133,-0.070011831820011,0.100525684654713,-0.009403042495251,0.023202978074551,0.016511779278517) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.032949719578028,-0.127885818481445,-0.009547225199640,-0.136606350541115,-0.027893157675862,-0.030753534287214,-0.006631453521550,0.012864323332906,0.024681331589818,0.122930675745010,-0.253336876630783,0.158587783575058,-0.053061801940203,-0.170583009719849,-0.014833587221801,-0.229450568556786) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.097934894263744,0.221880063414574,-0.120379962027073,0.122555203735828,-0.077271878719330,-0.096071474254131,0.029650047421455,0.155033662915230,0.017008367925882,0.074505850672722,0.128196626901627,0.137946516275406,-0.210916116833687,-0.009838711470366,0.170388489961624,-0.197390526533127) * MODEL12_texOff(vec2(0,0));
res += mat4(0.034053407609463,-0.037845090031624,-0.061252221465111,0.105507291853428,0.018863283097744,-0.093901842832565,0.015032576397061,-0.077315300703049,-0.105258330702782,-0.078307382762432,-0.011021795682609,0.030745895579457,-0.080837041139603,0.019289551302791,-0.004807953257114,0.041483271867037) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.049935922026634,-0.075106352567673,0.072335004806519,0.038981948047876,0.045098792761564,0.023966496810317,-0.062469247728586,-0.074251040816307,0.069539882242680,0.043847601860762,0.058836113661528,0.088258087635040,0.001705973991193,0.103300616145134,-0.015399787575006,0.023055460304022) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.018506044521928,-0.017584653571248,-0.101466059684753,-0.386706143617630,0.028096944093704,0.034009601920843,0.028330402448773,-0.098879069089890,0.036078691482544,-0.008149186149240,-0.201501861214638,0.092237003147602,-0.022721692919731,0.043198391795158,0.115565091371536,0.001430961885490) * MODEL12_texOff(vec2(1,0));
res += mat4(0.117489658296108,-0.014485309831798,0.051937144249678,0.068428456783295,0.030783705413342,0.094325721263885,0.042406953871250,-0.000357717508450,-0.018073141574860,0.116391405463219,0.002387724816799,0.036689709872007,-0.030267784371972,-0.091418266296387,0.002661517122760,0.038831278681755) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.036766115576029,-0.102674126625061,0.701349198818207,-0.049043130129576) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL6
//!DESC [AiUpscale_HQ_3x_Photo] mapping 3_6

vec4 hook()
{
vec4 res = vec4(-0.012186228297651,0.221704632043839,0.145187810063362,0.029101433232427);
res += mat4(0.212245211005211,0.230064347386360,0.112405598163605,0.126891300082207,-0.011476927436888,0.057839583605528,-0.002730111125857,0.304330676794052,-0.084463052451611,0.089830741286278,0.075625263154507,0.087185293436050,-0.023614656180143,-0.193392574787140,0.125128686428070,0.008310650475323) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.088713318109512,-0.157625094056129,0.023311786353588,0.157806113362312,0.139051511883736,-0.357540428638458,-0.016894523054361,-0.241033360362053,-0.004619241692126,-0.014985234476626,0.063089430332184,-0.085254818201065,-0.028483405709267,-0.098583243787289,-0.050774198025465,-0.001173051772639) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.084027603268623,-0.186813428997993,0.034400664269924,-0.108472585678101,0.219000622630119,-0.158200234174728,0.023896163329482,-0.173224002122879,0.118080064654350,-0.001495254924521,0.023518519476056,0.030479140579700,-0.056089371442795,-0.015287298709154,-0.037453237921000,0.069890320301056) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.012891729362309,0.100576452910900,0.060117293149233,-0.111897967755795,-0.223455891013145,0.220997944474220,-0.072576276957989,0.169964313507080,-0.003372490871698,-0.051667969673872,-0.000272829871392,-0.012963741086423,-0.081491611897945,-0.388863205909729,0.076255679130554,0.013999338261783) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.075673729181290,-0.023415653035045,-0.043666590005159,-0.089595824480057,-0.210396304726601,-0.410579264163971,0.000670823850669,0.144252613186836,0.047486610710621,-0.010322033427656,0.079101115465164,-0.121883399784565,-0.004766408819705,-0.434502601623535,-0.027927581220865,-0.149653673171997) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.056337021291256,-0.011889430694282,0.094797983765602,0.076959811151028,-0.035898268222809,-0.263481229543686,0.065447136759758,0.251352459192276,0.069937802851200,-0.011384452693164,0.034605879336596,-0.095210380852222,-0.028697485104203,-0.082313306629658,-0.033781014382839,0.078575700521469) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.055781129747629,0.034645974636078,0.208179205656052,-0.043936308473349,0.006106954999268,0.030444754287601,0.046536426991224,-0.068873502314091,0.113697595894337,0.198530822992325,-0.166107088327408,0.219096854329109,0.020996563136578,-0.336624622344971,0.147391900420189,0.075832024216652) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.058104965835810,0.222687974572182,-0.006521626841277,-0.142166510224342,-0.207313373684883,-0.099806845188141,0.010785672813654,-0.081754580140114,-0.013170829974115,0.096360608935356,0.069237150251865,0.045795530080795,0.027214752510190,-0.257181972265244,-0.112849630415440,-0.036223012953997) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.048892002552748,0.089538782835007,0.123420864343643,-0.149845987558365,-0.127825751900673,0.005414136219770,0.024617839604616,-0.056410193443298,0.079213947057724,-0.060303423553705,-0.006307126022875,0.088140070438385,0.020797420293093,-0.284885227680206,-0.024586049839854,-0.008548755198717) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.163312956690788,-0.116472385823727,0.062932007014751,-0.058478545397520,0.205473646521568,0.029917430132627,-0.286235958337784,0.124541155993938,-0.023601373657584,0.042588371783495,0.036078006029129,-0.068156249821186,0.021809576079249,0.003035473171622,0.007876786403358,-0.126005664467812) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.031899750232697,-0.036264702677727,-0.033625409007072,0.090350732207298,-0.030523879453540,-0.468403935432434,-0.247394964098930,0.180757790803909,0.013485452160239,0.161586180329323,0.035984762012959,0.062028266489506,-0.114977307617664,-0.149467602372169,0.121121540665627,0.061407834291458) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.050531778484583,0.180796176195145,-0.055682655423880,-0.078030757606030,-0.018775667995214,-0.188102185726166,-0.146235227584839,-0.103468507528305,-0.048989105969667,-0.118602395057678,-0.008056273683906,0.141514360904694,-0.079457119107246,-0.053712375462055,0.004101253580302,0.042725268751383) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.019009025767446,-0.180855602025986,0.045803163200617,-0.039106134325266,-0.019412279129028,0.159851491451263,0.015601357445121,0.005374772474170,-0.013560986146331,0.020327344536781,-0.009083807468414,0.007026172243059,-0.040326278656721,0.071499191224575,-0.074444159865379,-0.149159908294678) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.102724216878414,-0.200734212994576,0.034999135881662,-0.190730199217796,0.023682137951255,-0.287677705287933,0.042816117405891,0.224053025245667,0.229051068425179,0.006131808739156,0.065595373511314,-0.089085295796394,0.061837505549192,0.107575580477715,-0.086654737591743,0.154404506087303) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.041668463498354,-0.001179751823656,0.077275142073631,0.171184256672859,0.016761953011155,-0.017806522548199,-0.197755038738251,0.041208516806364,0.206386730074883,-0.074419885873795,0.006152143236250,0.052997305989265,-0.079890750348568,0.115797683596611,-0.160147294402122,-0.062173895537853) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.064271412789822,-0.048880096524954,-0.034705087542534,-0.048906199634075,-0.030109426006675,-0.093147203326225,0.017342472448945,-0.052892975509167,-0.115267388522625,-0.073804616928101,-0.017728049308062,-0.003751061158255,-0.117432698607445,0.070946045219898,-0.010667406953871,0.005342328455299) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.085130311548710,-0.106274984776974,-0.099788136780262,-0.036134142428637,0.014189853332937,0.131301194429398,-0.062408782541752,0.061892881989479,0.019203195348382,0.098709583282471,0.100285798311234,0.014845765195787,0.176426425576210,-0.167444273829460,-0.063820004463196,-0.060005351901054) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.019122963771224,0.241040915250778,0.036500625312328,0.113258466124535,-0.029533136636019,0.054542526602745,0.008915645070374,0.015372563153505,-0.084010995924473,0.143399015069008,-0.180388167500496,-0.228141590952873,0.066161639988422,-0.113735139369965,0.059836503118277,0.128097519278526) * MODEL8_texOff(vec2(1,1));
res += mat4(0.090310737490654,-0.047998059540987,0.005906707141548,0.029078120365739,0.015679277479649,-0.334318250417709,0.028132507577538,-0.108346343040466,0.079127922654152,0.215902656316757,-0.015990521758795,0.074094973504543,0.088719293475151,-0.061574649065733,0.032501764595509,-0.025913983583450) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.086459361016750,0.122137069702148,-0.126727357506752,0.073161549866199,0.004467370919883,-0.141704753041267,0.098291374742985,0.028865544125438,0.030329085886478,0.102660492062569,0.033875141292810,0.240909099578857,-0.124967232346535,-0.046034879982471,0.187865421175957,0.112716302275658) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.000414581911173,0.033514834940434,0.003007747000083,0.018727241083980,-0.070324778556824,-0.260972470045090,0.059223745018244,0.017420522868633,-0.013632042333484,-0.040832821279764,-0.022535091266036,-0.024348519742489,0.188776805996895,-0.307019978761673,0.147637709975243,-0.276874452829361) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.116193510591984,0.033934239298105,0.095969535410404,-0.110709279775620,-0.034895747900009,0.251110076904297,0.044137269258499,0.048001956194639,-0.029457259923220,0.209726989269257,0.045715868473053,-0.096953503787518,0.100381672382355,0.048391982913017,-0.075118832290173,-0.141966506838799) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.399161905050278,-0.204795405268669,-0.112268909811974,0.045413412153721,-0.247414886951447,-0.077665515244007,-0.095902942121029,-0.111762583255768,0.184374779462814,-0.055238105356693,-0.001748722512275,0.071049861609936,0.115751639008522,-0.233870491385460,-0.013253454118967,-0.162396252155304) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.126229032874107,-0.056053917855024,-0.096787519752979,0.090273216366768,-0.004755687434226,-0.080959551036358,-0.092624247074127,-0.086006380617619,0.014375444501638,-0.130008950829506,0.074208267033100,0.356406867504120,0.021087173372507,-0.440965354442596,-0.053049851208925,-0.182293504476547) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.105947792530060,-0.056657437235117,0.001354296575300,-0.010516542010009,-0.008407693356276,-0.005075822118670,-0.015953518450260,-0.003588610328734,0.103931471705437,0.200981065630913,0.103434696793556,-0.102102726697922,-0.024058949202299,0.128277152776718,0.023747956380248,0.138520807027817) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.039522208273411,-0.339551359415054,-1.210295438766479,-0.201311007142067,0.100804157555103,0.137884601950645,0.027721893042326,-0.029038118198514,0.056159272789955,0.118727453052998,-0.083231411874294,-0.179080709815025,-0.094815835356712,0.005643420387059,0.046685278415680,-0.090364456176758) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.057582680135965,-0.178834110498428,-0.092713236808777,-0.044742014259100,-0.055549360811710,-0.031903494149446,-0.039195831865072,0.096513979136944,0.101998895406723,0.211620241403580,-0.190733820199966,-0.037441477179527,-0.035936415195465,-0.136762112379074,-0.030152957886457,-0.058563046157360) * MODEL9_texOff(vec2(1,1));
res += mat4(0.087181322276592,0.217562451958656,0.032633945345879,-0.105050161480904,0.234668672084808,0.101529270410538,0.007694067433476,-0.027201281860471,-0.172880575060844,-0.022652706131339,0.062292598187923,-0.283269554376602,0.115149334073067,0.007340785581619,-0.025217551738024,-0.049210257828236) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.198235616087914,-0.004469981417060,0.070501096546650,-0.126856267452240,0.189434438943863,0.060097746551037,0.056042417883873,0.015811001881957,-0.000078406192188,0.101787745952606,-0.037949725985527,-0.085798487067223,0.084649272263050,0.055941816419363,-0.082401834428310,-0.028279764577746) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.046804763376713,0.002719200681895,0.081466384232044,-0.066032499074936,0.101645797491074,0.181927591562271,0.024407921358943,0.030374534428120,-0.099098883569241,0.062982186675072,-0.044465590268373,0.014928166754544,-0.007525593042374,0.021462794393301,-0.094049327075481,-0.035604666918516) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.000631896837149,0.125999912619591,-0.065096363425255,0.026486318558455,0.044058971107006,0.092083640396595,-0.088817477226257,-0.147589296102524,-0.069617003202438,-0.092593111097813,-0.036554783582687,-0.101635254919529,-0.054170411080122,0.190176665782928,0.050458028912544,0.080609507858753) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.210746720433235,-0.121792316436768,0.055860936641693,-0.046259909868240,0.077137261629105,-0.014161460101604,-0.077517911791801,-0.015479593537748,-0.079044923186302,0.176017284393311,-0.167466744780540,-0.110917232930660,-0.073698371648788,0.092066973447800,-0.116682566702366,-0.117277994751930) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.032419323921204,-0.103200726211071,-0.050284750759602,-0.045022439211607,-0.038434483110905,0.025296445935965,-0.050454549491405,0.035651277750731,-0.313020229339600,0.034856129437685,-0.012764440849423,-0.298249244689941,0.041346069425344,-0.067035615444183,0.041391957551241,-0.126068115234375) * MODEL10_texOff(vec2(0,1));
res += mat4(0.009731354191899,0.323385506868362,0.074781246483326,0.126952350139618,0.155410483479500,0.130399987101555,0.032509934157133,0.014653816819191,-0.171199530363083,0.164057731628418,-0.075452879071236,-0.073120079934597,0.032785002142191,0.023805603384972,-0.004933996591717,0.003545555984601) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.014186470769346,-0.047065570950508,0.079044073820114,0.119162008166313,-0.071174658834934,-0.010627136565745,-0.039496146142483,-0.054106265306473,-0.132829800248146,-0.087577685713768,0.014175580814481,-0.124262720346451,-0.100033476948738,0.039159316569567,0.185674637556076,0.068803198635578) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.035016477108002,0.172362163662910,-0.049506541341543,0.062728308141232,-0.012653954327106,-0.102563969790936,0.010161574929953,0.037014540284872,-0.098765403032303,0.000122428638861,-0.020427552983165,-0.088158972561359,-0.024998134002090,-0.166527897119522,-0.031459242105484,0.038065508008003) * MODEL10_texOff(vec2(1,1));
res += mat4(0.003066832432523,0.022758014500141,0.031981512904167,0.063414953649044,0.070680208504200,0.013018743135035,-0.157072201371193,-0.105459950864315,-0.070032306015491,0.081984698772430,0.006381160113961,-0.080648079514503,0.099364586174488,0.040153644979000,-0.004020708613098,0.042848553508520) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.062769599258900,0.012166015803814,0.031732171773911,-0.012455863878131,-0.191346734762192,0.251044034957886,0.072755143046379,-0.080923788249493,0.002751943189651,-0.101427942514420,0.010026900097728,-0.066241264343262,0.296988070011139,-0.188999578356743,-0.069612622261047,0.190118700265884) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.108439311385155,-0.008948703296483,-0.042120326310396,-0.071461528539658,0.001584163866937,-0.039923660457134,0.041398119181395,-0.037656180560589,0.054726786911488,0.184751048684120,0.041227523237467,-0.028345264494419,-0.015760084614158,-0.122166596353054,-0.018327249214053,0.169051453471184) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.120165929198265,0.017115818336606,0.010789404623210,-0.062420729547739,-0.086215578019619,-0.004412370268255,-0.012487078085542,-0.088383093476295,-0.033640522509813,0.084429070353508,0.038177002221346,0.084460906684399,-0.187616556882858,-0.114576391875744,0.065635152161121,-0.182014852762222) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.107602573931217,0.000268817559117,-0.001556540839374,-0.049286052584648,-0.301424026489258,0.022732527926564,0.019834309816360,-0.109349794685841,-0.037660207599401,0.038167785853148,-0.021469069644809,0.105940707027912,-0.188414990901947,-0.338831216096878,0.161571145057678,-0.586796641349792) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.152230829000473,0.149368748068810,-0.000585374946240,0.144336730241776,-0.065416641533375,0.096844792366028,0.032132986932993,-0.118383735418320,-0.100500464439392,0.032124422490597,-0.045659501105547,-0.099045567214489,0.000217056163820,-0.347602903842926,0.108710773289204,-0.031978167593479) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.141123399138451,-0.061994735151529,-0.030617348849773,-0.017783962190151,-0.076059848070145,0.018134064972401,-0.034271355718374,-0.023748846724629,-0.055526342242956,0.014235513284802,0.080337122082710,-0.211187422275543,-0.052627243101597,-0.105314150452614,0.002451062668115,-0.003251511836424) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.074061177670956,0.060296710580587,0.061551857739687,-0.054897285997868,-0.093333847820759,-0.240797549486160,0.134884268045425,0.049356017261744,-0.165952801704407,-0.013833510689437,0.030029699206352,-0.041837077587843,-0.130666598677635,-0.073970824480057,0.023322744295001,-0.281221449375153) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.062031108886003,0.036963529884815,0.048074536025524,-0.005609485320747,-0.175143182277679,0.007601063232869,-0.033180981874466,0.107275456190109,0.018879964947701,0.227946519851685,-0.014861579053104,-0.131120890378952,0.057348400354385,-0.078442014753819,0.073771134018898,-0.158411204814911) * MODEL11_texOff(vec2(1,1));
res += mat4(0.081450529396534,0.032067783176899,-0.042901009321213,-0.008097924292088,-0.054718766361475,-0.110837094485760,0.036124758422375,0.041687667369843,-0.048784602433443,0.061670873314142,-0.024499209597707,-0.099196106195450,0.081982165575027,-0.245527237653732,0.086876489222050,0.022998362779617) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.013840359635651,-0.007755537983030,-0.068347670137882,0.016154976561666,-0.063952609896660,0.065898336470127,-0.025769427418709,-0.023965014144778,-0.018266702070832,-0.121289558708668,-0.129880607128143,-0.010312868282199,-0.138447940349579,0.087960675358772,0.009669900871813,-0.000104861028376) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.074325427412987,-0.002830655314028,-0.010953155346215,-0.019848616793752,-0.030322428792715,-0.044763233512640,-0.023274626582861,-0.033841185271740,0.049068771302700,-0.126435711979866,0.046970292925835,0.037995480000973,-0.100678622722626,0.152953386306763,-0.004676411859691,-0.050244409590960) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.051316641271114,-0.113944202661514,-0.017991840839386,0.182066246867180,0.082991532981396,-0.021502083167434,-0.008393608033657,0.043987050652504,-0.182462543249130,-0.145600020885468,0.021824928000569,-0.128147020936012,0.012086298316717,-0.247957989573479,-0.135460734367371,0.125843197107315) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.029388397932053,0.036473423242569,-0.048581063747406,0.030513549223542,-0.154212713241577,0.013470757752657,0.178940683603287,-0.027043649926782,-0.059635300189257,-0.146677300333977,0.051958076655865,-0.019007595255971,-0.001646099844947,-0.183106034994125,0.030714716762304,-0.147505372762680) * MODEL12_texOff(vec2(0,0));
res += mat4(0.067767247557640,0.002473415341228,-0.042856831103563,0.089172266423702,0.031988073140383,-0.168883800506592,0.069143399596214,0.133682191371918,0.060837544500828,-0.123439095914364,-0.038381420075893,0.081312738358974,0.084908567368984,0.107717141509056,0.022290982306004,-0.171620503067970) * MODEL12_texOff(vec2(0,1));
res += mat4(0.139912396669388,0.124289348721504,-0.061301641166210,-0.099007226526737,0.008608024567366,-0.058604549616575,-0.076984599232674,-0.150795623660088,0.124604240059853,0.117132015526295,-0.091344311833382,0.010967630892992,0.047390893101692,-0.027477396652102,-0.023532677441835,-0.047701511532068) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.133899241685867,-0.015387191437185,-0.006351630669087,-0.053266789764166,-0.000770645041484,0.133110135793686,0.085683219134808,-0.147356554865837,0.039459861814976,0.132070779800415,0.115958325564861,-0.003510155016556,0.106605164706707,0.176634714007378,0.076723933219910,0.136629909276962) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.171187236905098,-0.073485173285007,-0.047492720186710,-0.086848780512810,-0.037370998412371,-0.008987395092845,-0.138165101408958,0.021416533738375,-0.005673729814589,0.096479237079620,0.038896527141333,0.043778121471405,0.037697527557611,0.070604376494884,0.045807506889105,-0.027761081233621) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.146145924925804,-0.027313312515616,0.046930652111769,-0.029350409284234) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!BIND FEATURE1
//!SAVE MODEL7
//!DESC [AiUpscale_HQ_3x_Photo] mapping 4_1

vec4 hook()
{
vec4 res = vec4(-0.206180021166801,0.006096399389207,-0.085803471505642,-0.096999086439610);
res += mat4(0.101389080286026,0.179194554686546,0.041548393666744,0.085632883012295,-0.140717729926109,0.037636846303940,-0.022267213091254,-0.257239401340485,-0.047514747828245,0.017234973609447,-0.029579224064946,0.084917418658733,-0.173255860805511,0.012922711670399,0.057554323226213,-0.220947280526161) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.085669428110123,0.092806063592434,0.074603796005249,0.123517893254757,0.109825611114502,0.086802318692207,0.186223313212395,-0.192124187946320,0.012699225917459,0.116044566035271,0.026390764862299,0.080952435731888,-0.001358116627671,-0.065912030637264,-0.115048132836819,-0.186844840645790) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.133706495165825,0.108718886971474,-0.082553625106812,0.034443397074938,-0.064279101788998,-0.198943421244621,-0.143279641866684,-0.040893774479628,0.132755875587463,0.185544386506081,-0.051484789699316,-0.102753527462482,-0.054264951497316,-0.006661798339337,0.031926237046719,-0.017976833507419) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.019773313775659,0.033305004239082,0.061508432030678,0.082498006522655,-0.031226886436343,0.003967095166445,-0.190698847174644,0.074563473463058,-0.141367554664612,0.007991514168680,-0.134941369295120,0.058366313576698,-0.031043998897076,-0.037524785846472,-0.155402570962906,-0.098870895802975) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.036265656352043,0.154504776000977,0.135496288537979,0.030856529250741,0.058536227792501,-0.086220934987068,-0.037524003535509,-0.073842495679855,0.157475978136063,-0.164662674069405,-0.105511747300625,-0.038159646093845,-0.128477036952972,-0.012886726297438,0.157620325684547,-0.170260012149811) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.009586604312062,-0.011374625377357,0.073059447109699,0.040981691330671,0.010262383148074,-0.146642223000526,-0.107732333242893,-0.033274091780186,0.293894559144974,-0.029759876430035,0.127846881747246,-0.025609849020839,0.025581346824765,-0.021909741684794,-0.079214163124561,-0.118118762969971) * MODEL1_texOff(vec2(0,1));
res += mat4(0.236727178096771,0.031474731862545,0.114441923797131,0.066776148974895,0.149614632129669,0.117587283253670,0.042335122823715,0.080921933054924,-0.124368801712990,0.280883431434631,-0.104047395288944,0.129094943404198,-0.003038285998628,-0.020750448107719,-0.098664030432701,0.073034368455410) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.154374822974205,0.172942772507668,0.046243075281382,0.272473067045212,0.069861218333244,-0.151100039482117,-0.197600722312927,0.135278642177582,0.151093080639839,-0.061126526445150,-0.127600520849228,-0.061906881630421,0.165473848581314,-0.189317598938942,0.150317996740341,0.041215855628252) * MODEL1_texOff(vec2(1,0));
res += mat4(0.076854422688484,0.044231835752726,0.026833457872272,0.134844481945038,0.048821352422237,0.011987809091806,0.001598858740181,-0.005795606877655,-0.162815555930138,0.135569781064987,-0.153658151626587,0.182085141539574,0.075019337236881,-0.016104727983475,0.014747643843293,0.057834021747112) * MODEL1_texOff(vec2(1,1));
res += mat4(0.040706314146519,0.131016284227371,-0.085211761295795,0.111244283616543,0.001773738535121,0.130947470664978,0.115970514714718,0.021508200094104,0.173055693507195,0.013080512173474,-0.010065753012896,-0.036780759692192,-0.121121853590012,-0.022831385955215,-0.090033188462257,-0.045136090368032) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.044101130217314,-0.042577285319567,0.014593866653740,0.038541231304407,0.055246490985155,0.205576464533806,0.132852435112000,-0.036730021238327,0.121425129473209,0.015101082623005,-0.150890454649925,0.067326009273529,-0.006221172865480,0.000392747722799,-0.216064363718033,-0.001026910846122) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.034994058310986,-0.097527667880058,0.030152937397361,-0.167680010199547,0.048975486308336,-0.029426360502839,-0.074091896414757,0.145055204629898,0.049520343542099,-0.020861640572548,0.027993397787213,0.009469654411077,-0.144669562578201,0.054791361093521,-0.050133284181356,-0.109578944742680) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.081019237637520,0.096308283507824,0.145148456096649,-0.209590882062912,0.082239300012589,0.073925912380219,0.078241482377052,0.054400246590376,-0.055361878126860,-0.085111908614635,-0.018444241955876,0.041271466761827,-0.121262595057487,-0.088826961815357,-0.140898734331131,-0.047234486788511) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.147302091121674,0.089866034686565,0.243061065673828,-0.109620437026024,-0.110596083104610,0.005653345026076,-0.055916082113981,0.202825054526329,-0.047710917890072,-0.040217138826847,0.003326943842694,0.241763249039650,-0.068383067846298,-0.018447767943144,-0.189788818359375,-0.293564826250076) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.048691019415855,-0.030130075290799,0.066191859543324,-0.002574998652562,-0.007981709204614,0.052221380174160,0.081536568701267,0.145660281181335,0.007002346683294,0.008051032200456,-0.019998138770461,0.079999953508377,-0.189255416393280,0.057739838957787,-0.234358161687851,0.205192700028419) * MODEL2_texOff(vec2(0,1));
res += mat4(0.055119547992945,0.139130175113678,0.079052262008190,-0.237806528806686,0.073414333164692,0.070106938481331,-0.037761870771646,0.010850180871785,-0.032880369573832,-0.036621563136578,-0.177635386586189,0.055321883410215,-0.083492547273636,-0.019694356247783,-0.131839409470558,-0.165946453809738) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.022202262654901,0.074441611766815,-0.109931237995625,-0.008567065000534,0.030131345614791,0.109968781471252,0.019097918644547,0.170573040843010,-0.040518663823605,0.091236189007759,-0.132168129086494,-0.031986530870199,-0.103268072009087,0.080948643386364,-0.270512461662292,-0.257712125778198) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.003373623825610,0.057082232087851,-0.002049727365375,0.007271227426827,-0.043069329112768,0.066105760633945,0.084208957850933,0.000181696173968,0.097544282674789,0.020613167434931,0.013826404698193,0.044141359627247,-0.116032168269157,0.016408266499639,-0.125431388616562,-0.141210645437241) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.024385444819927,-0.024038700386882,-0.039144959300756,-0.157805487513542,-0.014790725894272,0.002220456255600,-0.032596889883280,0.119478166103363,-0.045296553522348,0.067649953067303,-0.000986958970316,-0.129263937473297,0.202713891863823,0.047193489968777,0.090835019946098,0.174691796302795) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.119489967823029,0.046942085027695,0.004987066611648,0.273318886756897,0.123309738934040,0.200830444693565,0.087116718292236,0.146241873502731,-0.064785040915012,-0.026710389181972,0.034651748836040,-0.143312484025955,0.148006066679955,-0.033590760082006,0.231923729181290,-0.240470796823502) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.048479594290257,0.108615167438984,0.179153650999069,0.088103286921978,0.107511140406132,0.242105796933174,0.105711124837399,0.097771428525448,-0.199239835143089,0.099104367196560,-0.113174147903919,-0.335039019584656,0.205710962414742,0.091777175664902,0.137529909610748,0.249755099415779) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.041205320507288,-0.121844947338104,0.046913098543882,0.053745523095131,-0.095437787473202,0.100557804107666,0.165848419070244,-0.062801532447338,-0.083330236375332,0.013783296570182,-0.095234289765358,-0.028144476935267,0.281614184379578,0.167104050517082,0.054303154349327,0.219989627599716) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.019926434382796,-0.023901380598545,0.171655878424644,0.146286413073540,0.006820435635746,0.200842916965485,-0.026754846796393,-0.050764683634043,-0.216420039534569,-0.145674914121628,-0.163414970040321,-0.060618884861469,0.108390405774117,0.043461564928293,0.100403152406216,0.078992448747158) * MODEL3_texOff(vec2(0,0));
res += mat4(0.107188858091831,0.002232403028756,0.009783712215722,0.058026388287544,0.093759283423424,0.339386463165283,0.105403281748295,0.054440390318632,-0.379849731922150,-0.029556738212705,0.188103005290031,-0.279065370559692,0.205102130770683,0.050989981740713,0.185224309563637,0.289068073034286) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.033270433545113,0.098189309239388,-0.054863456636667,-0.154784321784973,-0.198410049080849,0.103335373103619,0.023976143449545,-0.041825596243143,0.021721795201302,-0.053665123879910,-0.070703923702240,-0.072005994617939,0.232485532760620,0.153007313609123,0.186868980526924,0.135198995471001) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.051496226340532,0.042715497314930,-0.247445717453957,-0.047563303261995,-0.084941446781158,0.187237828969955,0.116840168833733,0.070965431630611,-0.032882027328014,0.033672809600830,-0.081971332430840,-0.110197052359581,0.078527316451073,-0.009873180650175,0.163260996341705,0.263987302780151) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.065856173634529,0.028521837666631,-0.021267311647534,-0.042018160223961,0.088722378015518,0.109719328582287,0.137458875775337,-0.078671649098396,-0.118074066936970,-0.055540256202221,-0.219777747988701,-0.225094452500343,0.168934360146523,-0.055310860276222,0.212505504488945,0.273366004228592) * MODEL3_texOff(vec2(1,1));
res += mat4(0.086408592760563,-0.063084252178669,-0.054467514157295,-0.130664438009262,0.038402907550335,-0.230713218450546,-0.285892665386200,-0.055954687297344,-0.008215954527259,0.089144721627235,0.042441066354513,-0.038063809275627,-0.006628629751503,0.013033218681812,0.117102183401585,0.105092838406563) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.013927244581282,-0.052604250609875,-0.012929366901517,0.091504611074924,0.221912115812302,0.091689132153988,0.214381128549576,-0.088766388595104,-0.115398406982422,0.018114166334271,-0.084628246724606,-0.059265255928040,0.119162417948246,0.061152875423431,-0.056871511042118,0.182004794478416) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.015838578343391,-0.224491372704506,-0.089978322386742,0.097350582480431,-0.017019173130393,-0.006246407981962,-0.013766263611615,-0.106136091053486,-0.022198496386409,0.069656781852245,0.293661743402481,-0.345543295145035,0.151701211929321,0.009123877622187,-0.155917689204216,0.135010376572609) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.013567134737968,-0.176810309290886,0.009060121141374,0.054062023758888,0.084217689931393,0.193168923258781,-0.119148239493370,-0.088251225650311,-0.037739515304565,-0.016487073153257,0.009168369695544,0.062518775463104,-0.039313379675150,-0.019619176164269,0.109351806342602,0.018867924809456) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.137464389204979,-0.242554932832718,-0.011347282677889,-0.050657328218222,0.127935513854027,-0.206137984991074,0.106575094163418,-0.023149723187089,-0.075104288756847,0.312439173460007,-0.097432076931000,-0.251197338104248,0.028280295431614,-0.019400371238589,0.055460169911385,-0.283952325582504) * MODEL4_texOff(vec2(0,0));
res += mat4(0.015181900002062,-0.239030778408051,-0.090506628155708,0.052695229649544,0.012853561900556,0.054615434259176,-0.056684799492359,-0.002044938970357,-0.063124589622021,0.024336859583855,0.030872410163283,0.079306356608868,0.105216011404991,0.157109543681145,-0.106475442647934,-0.051253158599138) * MODEL4_texOff(vec2(0,1));
res += mat4(0.143975168466568,-0.154347032308578,-0.035006567835808,-0.053717732429504,-0.105096429586411,0.057143244892359,-0.181639477610588,0.057166542857885,-0.123961411416531,0.025077892467380,-0.056920971721411,0.076091632246971,-0.070114746689796,0.007904181256890,-0.004309441894293,-0.072156541049480) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.060964569449425,-0.227154344320297,-0.051259458065033,-0.086111769080162,0.045182727277279,-0.027724968269467,-0.039646707475185,-0.035539459437132,-0.235168889164925,-0.321428000926971,-0.029659451916814,0.200208559632301,-0.005353468470275,-0.015347407199442,-0.109271943569183,-0.109186820685863) * MODEL4_texOff(vec2(1,0));
res += mat4(0.001507789129391,-0.290604025125504,-0.013666080310941,0.002161406213418,0.014155462384224,0.078250773251057,0.032659791409969,-0.023597706109285,0.182663768529892,-0.077481731772423,0.130667373538017,0.060321439057589,-0.046800784766674,0.032381765544415,-0.048804063349962,-0.018808614462614) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.084789961576462,0.040083847939968,0.003738756757230,0.016157222911716,0.108956851065159,0.032072857022285,0.096263736486435,0.071698389947414,0.130454868078232,0.203689858317375,0.095796860754490,-0.150613352656364,-0.068108744919300,-0.132887065410614,0.103956006467342,-0.011888552457094) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.048792082816362,-0.033511172980070,0.020645070821047,-0.046338863670826,0.041485778987408,0.110771760344505,0.063973270356655,0.019844766706228,0.020503645762801,0.138623923063278,-0.122887723147869,0.200404644012451,-0.061812594532967,-0.065876953303814,0.305671215057373,-0.169994935393333) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.011862466111779,-0.038205537945032,-0.053296547383070,-0.049829047173262,0.149457454681396,0.077713824808598,-0.002938497811556,0.127902477979660,-0.153488636016846,0.210471674799919,-0.064773805439472,-0.076911903917789,0.135446965694427,-0.077936552464962,0.019582353532314,-0.074285283684731) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.059845056384802,0.204944506287575,0.099539317190647,-0.285552322864532,0.048163291066885,-0.024287199601531,0.120855323970318,0.061713881790638,0.132479995489120,-0.050978656858206,-0.091570928692818,0.060926910489798,-0.152217164635658,-0.134357184171677,-0.029200173914433,0.022391295060515) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.129203036427498,-0.048480901867151,0.044769890606403,-0.091584339737892,-0.043350141495466,0.084107704460621,0.036020550876856,0.161118805408478,-0.009320492856205,0.238426446914673,-0.021279368549585,-0.029658988118172,-0.083319164812565,-0.305037945508957,-0.179895892739296,-0.072204232215881) * MODEL5_texOff(vec2(0,0));
res += mat4(0.128005266189575,0.048671614378691,0.008157009258866,-0.077232927083969,0.116949245333672,-0.012233643792570,0.014145883731544,0.029327236115932,0.054615531116724,-0.065149210393429,-0.075302153825760,-0.036934591829777,0.017782775685191,-0.072283685207367,-0.006634807214141,-0.385232001543045) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.093723990023136,-0.007934097200632,-0.152047380805016,0.049723494797945,0.107794128358364,0.048043347895145,0.026258278638124,0.137148305773735,0.097272187471390,-0.053187027573586,0.133994683623314,0.024310817942023,-0.067376561462879,-0.111946515738964,-0.065821550786495,0.036174599081278) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.149298161268234,0.011726802214980,-0.146985620260239,0.020769475027919,0.017795048654079,0.007261994760484,0.013449092395604,0.050487410277128,0.075244925916195,-0.112722173333168,0.086671158671379,0.058662086725235,0.061148781329393,0.128292500972748,-0.149365678429604,-0.122413530945778) * MODEL5_texOff(vec2(1,0));
res += mat4(0.042400937527418,-0.055143587291241,0.032729305326939,0.050047673285007,-0.023137835785747,0.031763426959515,0.056887131184340,-0.139757096767426,-0.049177322536707,-0.011767550371587,0.037357546389103,-0.006150736939162,-0.102447271347046,-0.057349730283022,-0.138916984200478,0.044722005724907) * MODEL5_texOff(vec2(1,1));
res += mat4(0.059406388550997,-0.083906561136246,-0.254464358091354,0.099650353193283,-0.185870110988617,-0.108801603317261,0.061212059110403,-0.050633303821087,0.052477013319731,-0.053083445876837,-0.131486758589745,-0.038330551236868,0.229029446840286,-0.044731803238392,0.013589458540082,0.316810905933380) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.057674590498209,0.016008963808417,-0.079979591071606,-0.176389425992966,-0.282573878765106,-0.105789721012115,-0.035551626235247,-0.061368189752102,-0.125642031431198,-0.126313969492912,-0.223368421196938,0.100242428481579,0.177398756146431,0.014775921590626,-0.045571807771921,0.269730359315872) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.020349508151412,-0.080034211277962,0.019510366022587,-0.074335031211376,-0.257855147123337,-0.110049121081829,0.197238087654114,-0.050624746829271,-0.011156405322254,-0.039701517671347,0.067536860704422,0.115082740783691,0.241751357913017,-0.172126621007919,-0.015863221138716,0.080788314342499) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.194922178983688,0.116462901234627,-0.091719485819340,-0.033760067075491,-0.175825282931328,-0.035351406782866,-0.128213033080101,0.005954767111689,0.025390051305294,0.120902091264725,0.065680265426636,0.010575586929917,0.240800708532333,-0.085925050079823,-0.047969389706850,0.112124115228653) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.103024914860725,0.079380594193935,-0.195385470986366,0.103011801838875,-0.241487979888916,-0.081996634602547,0.055795665830374,-0.073971115052700,0.032859742641449,0.040162641555071,0.372545748949051,-0.069398939609528,0.178838625550270,-0.082904979586601,0.014681884087622,-0.055351890623569) * MODEL6_texOff(vec2(0,0));
res += mat4(0.058262422680855,-0.194842666387558,-0.039409834891558,0.137550756335258,-0.293000310659409,-0.057384967803955,-0.021206606179476,-0.019795970991254,0.028421616181731,-0.100079141557217,0.150486156344414,-0.234048351645470,0.114027455449104,-0.195809200406075,0.110931925475597,-0.112849466502666) * MODEL6_texOff(vec2(0,1));
res += mat4(0.041631743311882,0.162966400384903,-0.010431390255690,0.092476695775986,-0.188774093985558,0.078092448413372,-0.030158774927258,0.038886476308107,-0.078968554735184,0.069136738777161,0.039493873715401,0.053517211228609,0.197098463773727,0.000909873167984,0.017487777397037,-0.069441474974155) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.069360569119453,0.252665132284164,0.055820707231760,0.064985841512680,-0.124322488903999,0.055522598326206,-0.125564306974411,-0.038473792374134,-0.075908258557320,0.066309809684753,-0.016466708853841,0.119243279099464,0.073935732245445,-0.206007450819016,0.109503023326397,0.078198559582233) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.117142841219902,-0.151817709207535,-0.023872841149569,0.198436945676804,-0.096759699285030,0.096652865409851,-0.029861673712730,0.049775101244450,0.092597901821136,-0.101997733116150,-0.026268986985087,0.076053485274315,-0.023377327248454,-0.216373175382614,0.077639400959015,0.031445801258087) * MODEL6_texOff(vec2(1,1));
res += FEATURE1_texOff(0);
res = max(res, vec4(0.0)) + vec4(0.811995327472687,0.463717877864838,0.258293718099594,0.094248279929161) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!BIND FEATURE2
//!SAVE MODEL8
//!DESC [AiUpscale_HQ_3x_Photo] mapping 4_2

vec4 hook()
{
vec4 res = vec4(-0.039040070027113,0.002559837885201,-0.004129494540393,0.101277679204941);
res += mat4(0.071863658726215,-0.076381459832191,-0.020868474617600,0.145028769969940,-0.243608057498932,0.042460754513741,-0.072003059089184,-0.017102483659983,0.115440584719181,-0.047594744712114,0.039417095482349,0.087114401161671,-0.219390451908112,0.037596162408590,0.119781643152237,-0.092854700982571) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.055424682796001,-0.189147174358368,-0.041269335895777,0.032663214951754,0.207855850458145,0.277826756238937,-0.119960069656372,0.027490014210343,0.050727099180222,-0.212089717388153,0.027361541986465,0.143252417445183,-0.103401437401772,-0.070164754986763,0.085456646978855,-0.020171895623207) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.026906114071608,0.031111724674702,-0.028850931674242,0.020304968580604,0.096074543893337,-0.046176392585039,-0.016173075884581,-0.081526890397072,-0.085963718593121,-0.020087124779820,-0.063733942806721,0.098209813237190,-0.066853001713753,0.021842814981937,0.045049834996462,-0.007890271954238) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.106198400259018,-0.181777074933052,-0.038834828883410,0.008214334025979,0.060346227139235,0.015566884540021,-0.015399353578687,-0.065824747085571,0.355565696954727,-0.003659315640107,0.302548319101334,-0.004778584931046,-0.093398556113243,-0.121049895882607,-0.064259260892868,0.113271474838257) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.108262956142426,-0.015690168365836,0.002152553293854,0.080458380281925,-0.003151414683089,0.230789542198181,0.179305270314217,0.115818522870541,-0.238752365112305,-0.206162035465240,0.065381661057472,-0.117239579558372,-0.324092358350754,-0.076431624591351,-0.034273900091648,-0.134052798151970) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.004149567335844,-0.075843513011932,0.012764068320394,-0.113399483263493,-0.085711546242237,-0.127140983939171,-0.059627842158079,-0.174161165952682,-0.110079094767570,0.105302989482880,-0.024175565689802,-0.011959174647927,-0.184909984469414,-0.037743713706732,0.092307083308697,-0.032939843833447) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.150072261691093,-0.109091192483902,-0.042082391679287,-0.065641626715660,0.102051042020321,0.047296512871981,-0.060973972082138,-0.019095214083791,0.157234489917755,-0.106278292834759,0.085578985512257,-0.106790080666542,-0.395402193069458,-0.230493798851967,0.068725213408470,0.049562979489565) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.052873160690069,-0.052209559828043,-0.076027698814869,-0.151848509907722,-0.097454525530338,0.332378625869751,0.038025569170713,-0.084014400839806,0.254622817039490,-0.337056487798691,0.106342367827892,-0.191891148686409,0.013270899653435,-0.298847317695618,0.132545575499535,0.019453216344118) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.162232995033264,0.026292117312551,0.038941413164139,-0.005815945565701,0.055302888154984,-0.089719198644161,-0.035933785140514,-0.028446082025766,-0.052010025829077,0.045541379600763,0.042725384235382,0.036479812115431,-0.262945890426636,-0.091203317046165,0.002145654289052,-0.036156486719847) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.341879099607468,-0.037925489246845,-0.081192776560783,-0.152997955679893,0.174989283084869,0.053618326783180,0.069660715758801,0.166120946407318,0.155408203601837,0.088983513414860,-0.098277978599072,0.171068012714386,-0.064259737730026,-0.097902595996857,0.025281928479671,-0.083653256297112) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.064688287675381,-0.027378272265196,-0.008934279903769,-0.072570092976093,-0.183429569005966,-0.293954014778137,-0.102416411042213,0.035057287663221,0.053448058664799,-0.267106831073761,-0.080430187284946,-0.268397122621536,-0.122581571340561,-0.224804326891899,-0.047663047909737,-0.080147124826908) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.108714275062084,-0.208847418427467,0.096619144082069,-0.068007953464985,-0.085065864026546,0.170542642474174,0.026634458452463,0.059554949402809,0.011599798686802,0.070844486355782,0.003914976958185,-0.200648114085197,0.108912281692028,-0.399301499128342,-0.058104250580072,0.069097012281418) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.021157326176763,-0.087042510509491,-0.011517870239913,-0.060308825224638,-0.241386011242867,-0.259990304708481,0.154572665691376,0.100096717476845,-0.070264779031277,-0.060290347784758,-0.036448534578085,0.008684216998518,-0.052847269922495,-0.023779377341270,0.029105801135302,-0.053956877440214) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.080237455666065,-0.125831529498100,-0.109780266880989,-0.327862411737442,0.209138065576553,-0.312727242708206,0.053318392485380,0.065511114895344,-0.085854426026344,-0.178905963897705,0.061725314706564,-0.195269346237183,0.096661128103733,-0.303482264280319,-0.064302332699299,0.057766035199165) * MODEL2_texOff(vec2(0,0));
res += mat4(0.119212843477726,0.005404395051301,0.041060611605644,-0.076620012521744,0.009498605504632,-0.001219775876962,0.094339966773987,-0.038449428975582,-0.019891142845154,-0.162759289145470,0.055753096938133,-0.361558973789215,0.063406161963940,-0.103602595627308,-0.038278527557850,-0.049278832972050) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.087542966008186,-0.072413794696331,-0.025224661454558,-0.216818034648895,0.030821690335870,-0.201699689030647,0.053140558302402,0.141429692506790,-0.075891390442848,-0.085364006459713,-0.061277728527784,-0.163646951317787,0.062840655446053,-0.101553216576576,0.044625751674175,-0.052725244313478) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.114096097648144,-0.106939353048801,0.104540221393108,-0.012171560898423,-0.056981556117535,-0.060676816850901,-0.046129427850246,0.028259387239814,0.165859088301659,-0.024534780532122,-0.030516305938363,-0.156060293316841,0.112348221242428,-0.039992783218622,-0.012950096279383,-0.024770362302661) * MODEL2_texOff(vec2(1,0));
res += mat4(0.096708238124847,-0.104973211884499,0.064928419888020,0.024319401010871,-0.044286694377661,-0.000267324503511,0.002061451086774,-0.053754974156618,0.006563394330442,-0.284260481595993,0.028638340532780,-0.099527202546597,0.297016501426697,-0.169143497943878,-0.035406630486250,-0.011393643915653) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.095854908227921,-0.009024509228766,0.153982132673264,-0.002829327480868,0.209293663501740,0.226769879460335,0.034736879169941,-0.041275028139353,0.162696346640587,0.114775367081165,0.002989518456161,0.006781342439353,-0.169223248958588,0.027798440307379,0.103849127888680,0.127816632390022) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.008032582700253,0.008002636022866,0.116116076707840,-0.028133664280176,0.075754702091217,0.181647583842278,-0.053839266300201,0.165830507874489,-0.104146197438240,0.019581018015742,0.009777138940990,-0.162291809916496,-0.222601860761642,0.174567744135857,-0.027716727927327,0.043682422488928) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.193443745374680,-0.142548233270645,0.010139270685613,0.002506950171664,0.101965107023716,0.111482664942741,-0.075393915176392,0.116966322064400,0.221784010529518,0.044378232210875,0.066453531384468,0.024910189211369,-0.157651633024216,0.050522089004517,-0.029280686751008,-0.027945879846811) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.202527731657028,0.163035929203033,0.012521124444902,0.141136452555656,-0.030599622055888,-0.015691829845309,-0.066687405109406,-0.064346060156822,0.061921708285809,0.070936478674412,0.038342207670212,-0.104592807590961,-0.141267105937004,0.037170372903347,0.146245926618576,0.064943909645081) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.232130274176598,0.115057006478310,-0.057514660060406,-0.065316267311573,0.067386463284492,0.276468098163605,0.158259436488152,-0.112394236028194,-0.278433114290237,0.198602363467216,-0.064163789153099,-0.054375659674406,-0.146095544099808,0.155977845191956,0.039712745696306,-0.085928022861481) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.159760817885399,0.062459424138069,0.019573133438826,-0.101098358631134,-0.050592277199030,-0.011682186275721,-0.015895389020443,-0.036743555217981,0.148458495736122,-0.123768500983715,0.009084645658731,-0.157559245824814,-0.177451953291893,0.047646984457970,0.007016873452812,-0.028358712792397) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.144029051065445,0.021214112639427,-0.004866700153798,-0.098587930202484,0.039755199104548,0.002340044593439,0.003531397320330,0.002222790382802,-0.015541721135378,-0.089102312922478,0.034750856459141,0.064842253923416,0.019037848338485,-0.078484900295734,-0.023954236879945,0.079830564558506) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.146068617701530,-0.058889087289572,0.005025780294091,0.151576206088066,0.048465393483639,0.032038129866123,0.012917333282530,0.180752113461494,0.034160681068897,0.148037195205688,0.033219683915377,0.045640747994184,-0.096297711133957,-0.105363175272942,0.018709126859903,-0.088324859738350) * MODEL3_texOff(vec2(1,0));
res += mat4(0.003583862911910,0.088284149765968,-0.030271606519818,0.068305537104607,-0.046961098909378,-0.013397544622421,-0.009545129723847,0.019445380195975,0.274768978357315,0.008960260078311,0.045231848955154,0.094389244914055,-0.270912110805511,0.071634575724602,0.071169890463352,-0.047651778906584) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.013460582122207,-0.306894987821579,0.069152653217316,-0.173605248332024,0.034756969660521,0.041806276887655,0.125681608915329,-0.028151834383607,-0.030730076134205,0.106833793222904,0.140803962945938,0.025107054039836,-0.241184964776039,-0.005998739972711,-0.027316179126501,-0.061055026948452) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.020257549360394,-0.185510680079460,0.053711093962193,-0.130193769931793,0.062085274606943,0.115977726876736,0.003319839481264,-0.042542751878500,-0.057278834283352,0.114674843847752,0.096073329448700,0.048008289188147,0.229204520583153,-0.108465760946274,-0.136806145310402,-0.033214788883924) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.024175165221095,-0.178408429026604,-0.012589211575687,-0.076377540826797,-0.029052264988422,0.056168701499701,0.062097817659378,0.005571810062975,0.039586447179317,0.178797870874405,-0.016645601019263,-0.010323272086680,-0.142200872302055,0.101015567779541,-0.084418341517448,-0.052491512149572) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.253038138151169,-0.134811282157898,-0.007271352224052,0.139098897576332,0.293158292770386,0.155614927411079,-0.149682864546776,-0.052491500973701,-0.191892579197884,-0.092356644570827,0.033332049846649,0.110101863741875,-0.018192287534475,-0.001812647795305,-0.068851292133331,-0.040241125971079) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.096402823925018,0.106033757328987,-0.086183279752731,-0.270182579755783,0.231733068823814,-0.079860270023346,0.229001447558403,0.134854853153229,-0.047124326229095,0.020895931869745,-0.041267972439528,-0.197058886289597,0.077741384506226,-0.041057821363211,0.083116866648197,0.086925186216831) * MODEL4_texOff(vec2(0,0));
res += mat4(0.144422695040703,-0.266285866498947,0.100617267191410,-0.315104007720947,0.078615009784698,-0.110144816339016,0.059995409101248,0.004336855839938,-0.038796901702881,0.180392429232597,0.210993155837059,0.010684332810342,-0.199023738503456,0.050612624734640,-0.084235198795795,-0.071626402437687) * MODEL4_texOff(vec2(0,1));
res += mat4(0.023028779774904,0.009724821895361,0.020961686968803,-0.026673043146729,0.239426329731941,0.190083965659142,0.052306432276964,0.006343006156385,-0.114576525986195,-0.302347749471664,-0.014028447680175,0.120702005922794,0.014700170606375,-0.116320043802261,0.059879023581743,-0.020925957709551) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.102857626974583,-0.035472225397825,0.027023807168007,0.118387557566166,0.018515123054385,0.083704046905041,0.062060631811619,-0.029674462974072,-0.143093049526215,0.060363553464413,0.116418890655041,0.274574786424637,0.335246860980988,0.187835857272148,-0.093184947967529,-0.074464000761509) * MODEL4_texOff(vec2(1,0));
res += mat4(0.107101619243622,-0.251519858837128,-0.063426859676838,-0.047263387590647,0.053680412471294,0.011769745498896,0.053629975765944,0.067918442189693,0.073213689029217,-0.226962879300117,0.046693660318851,-0.024623923003674,0.054993558675051,0.045972947031260,-0.090443119406700,-0.015154380351305) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.001055624336004,0.132983088493347,0.014434295706451,0.036078777164221,-0.250980883836746,0.159117564558983,0.026521474123001,0.056641943752766,0.126615837216377,0.103762440383434,-0.026389002799988,-0.336670666933060,0.005438034888357,-0.182478651404381,0.047262150794268,0.023391541093588) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.060710687190294,0.038797851651907,-0.002019642153755,0.026868389919400,-0.301345497369766,0.148760974407196,-0.002908469876274,-0.008650270290673,0.015997681766748,-0.110009402036667,-0.011407329700887,0.152055010199547,0.195164859294891,0.241789311170578,-0.061406306922436,-0.062889151275158) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.168307423591614,-0.036470856517553,0.017791589722037,-0.010665187612176,-0.232916593551636,0.080952979624271,-0.031309913843870,0.026699030771852,0.011660483665764,-0.106860652565956,0.047591432929039,-0.011103563942015,0.151740342378616,-0.284032940864563,-0.019261643290520,-0.078626245260239) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.116365060210228,-0.068926669657230,0.254725158214569,-0.031986739486456,-0.323431402444839,0.083903118968010,0.046603668481112,-0.070169866085052,-0.114935904741287,0.142518788576126,-0.053810648620129,0.022281762212515,-0.033550024032593,-0.422569453716278,0.028911391273141,0.102111406624317) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.131018757820129,0.118981041014194,-0.041386391967535,0.134856864809990,-0.269926100969315,0.184376269578934,-0.007441237568855,-0.188995063304901,-0.099194303154945,0.066571876406670,0.113505214452744,-0.067646577954292,0.208770960569382,-0.041096638888121,0.017830489203334,0.073670335114002) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.125435978174210,-0.016116051003337,0.044957786798477,-0.092914670705795,-0.240586176514626,0.067845329642296,-0.037469025701284,-0.129991158843040,-0.098910644650459,-0.009868069551885,0.068679705262184,0.089259818196297,0.161579206585884,-0.065157860517502,0.032710537314415,-0.040802277624607) * MODEL5_texOff(vec2(0,1));
res += mat4(0.098906487226486,-0.021208744496107,0.099204093217850,0.144380196928978,-0.279233425855637,-0.012357325293124,-0.027154387906194,-0.048472728580236,0.021430434659123,0.027921637520194,-0.089794918894768,-0.032366219907999,0.046690642833710,-0.033603917807341,-0.037954866886139,0.047563392668962) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.067227214574814,-0.001892843865789,-0.041717786341906,0.065338455140591,-0.190598875284195,0.203689202666283,-0.031687907874584,-0.033827573060989,-0.043859738856554,-0.016640186309814,0.039645865559578,0.048861768096685,0.161569386720657,-0.159821748733521,0.086221002042294,0.037416122853756) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.022568840533495,0.107098303735256,-0.038701716810465,-0.096897289156914,-0.198538318276405,0.085422001779079,-0.043940208852291,-0.069827564060688,-0.029525347054005,0.001015973277390,-0.018524967133999,-0.126718550920486,0.089067950844765,0.030182080343366,0.017267230898142,-0.045814126729965) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.089077748358250,-0.000629103044048,-0.060195222496986,0.010366311296821,0.170258089900017,0.075166963040829,0.031653676182032,-0.165385186672211,0.174469754099846,0.300874590873718,0.013267334550619,0.049572866410017,-0.059459909796715,-0.127377778291702,-0.122061304748058,0.189233988523483) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.132869973778725,-0.374129503965378,-0.043858621269464,0.073363244533539,0.207349509000778,-0.028651416301727,0.111355759203434,-0.065865002572536,-0.134692236781120,-0.055165011435747,0.109633207321167,-0.109176836907864,-0.009948565624654,-0.103237606585026,-0.028770005330443,-0.036578129976988) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.008134991861880,-0.110063835978508,-0.052621159702539,0.010178531520069,0.376189589500427,0.069301873445511,0.051112156361341,-0.103927306830883,0.071773335337639,0.221106082201004,-0.053479932248592,0.048818703740835,0.026570783928037,-0.118805453181267,0.058090910315514,-0.009212986566126) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.060352943837643,-0.038015641272068,-0.081057168543339,0.029013507068157,0.139541000127792,0.031469397246838,0.023193979635835,0.010470796376467,-0.042930480092764,0.237359523773193,-0.074814677238464,0.018158748745918,-0.010036388412118,-0.228593975305557,-0.007199590560049,0.143369331955910) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.076779268682003,-0.306447625160217,-0.029108827933669,0.208485320210457,-0.023674372583628,-0.145672231912613,0.067957147955894,0.050333477556705,0.102954171597958,0.025893624871969,-0.090498842298985,-0.015856646001339,0.103793643414974,-0.117680646479130,-0.069411046802998,-0.039001833647490) * MODEL6_texOff(vec2(0,0));
res += mat4(0.129330784082413,-0.063372142612934,0.060198396444321,0.149018645286560,0.221047461032867,0.033607136458158,0.129367262125015,0.010605546645820,0.010535720735788,0.137556970119476,0.018965128809214,-0.062840297818184,0.012657184153795,-0.046392254531384,-0.033991310745478,-0.000874218298122) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.018587907776237,-0.106343254446983,-0.020432041957974,-0.044022943824530,0.321803480386734,-0.095330938696861,0.032786928117275,0.099164582788944,-0.012693727388978,0.104008294641972,-0.031297676265240,0.008775616995990,-0.091963268816471,0.060940515249968,-0.048162695020437,0.030790997669101) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.011700882576406,-0.245520234107971,0.038871869444847,-0.014506866224110,0.194478049874306,0.132822245359421,0.074063822627068,0.026827700436115,-0.055446613579988,-0.092310078442097,0.008433824405074,-0.077035911381245,-0.180377155542374,-0.175784349441528,-0.079714424908161,0.087159253656864) * MODEL6_texOff(vec2(1,0));
res += mat4(0.132705464959145,-0.240902081131935,0.054391656070948,0.034659754484892,0.315573304891586,0.100596159696579,0.033756438642740,0.028344405815005,-0.019153883680701,0.160880804061890,-0.064270965754986,-0.089103832840919,-0.064950667321682,0.162964314222336,-0.121659584343433,0.125704184174538) * MODEL6_texOff(vec2(1,1));
res += FEATURE2_texOff(0);
res = max(res, vec4(0.0)) + vec4(0.276317417621613,0.123165629804134,0.646838903427124,0.804925918579102) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!BIND FEATURE3
//!SAVE MODEL9
//!DESC [AiUpscale_HQ_3x_Photo] mapping 4_3

vec4 hook()
{
vec4 res = vec4(0.012745152227581,-0.115683712065220,-0.211939245462418,-0.127457126975060);
res += mat4(0.029621351510286,-0.027624787762761,-0.023937597870827,0.065911382436752,-0.058965601027012,0.085316605865955,0.056303568184376,0.140437632799149,0.037637032568455,0.052359722554684,-0.035428859293461,0.102302551269531,0.012974627315998,-0.179615452885628,-0.016036147251725,-0.020290724933147) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.079377934336662,-0.081490077078342,0.129070058465004,0.021840661764145,0.175092473626137,0.001143440837041,0.106726273894310,0.108913451433182,0.125962823629379,0.012367136776447,0.075693964958191,-0.142234355211258,0.082840405404568,-0.087220683693886,-0.103205807507038,0.054661884903908) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.013249212875962,0.140931472182274,-0.063988007605076,0.095251888036728,0.111675083637238,-0.015585250221193,0.029314406216145,-0.133461594581604,0.166232332587242,0.096355631947517,-0.092903204262257,-0.086452826857567,-0.006215652450919,-0.067233353853226,-0.013157684355974,-0.012763466686010) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.007985048927367,0.005791849456728,0.039267662912607,-0.036632042378187,0.041177332401276,0.173816174268723,0.083883807063103,-0.010118139907718,0.051166512072086,-0.026195714250207,0.128821507096291,0.142352908849716,0.024596307426691,-0.009669069200754,-0.023305244743824,-0.102305866777897) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.266828835010529,0.036317028105259,0.223178744316101,0.055601105093956,-0.026608657091856,-0.052089720964432,0.022587738931179,-0.190189749002457,0.067392557859421,-0.120208889245987,-0.207820191979408,0.063049249351025,-0.018472298979759,0.078808836638927,0.005792381707579,-0.122711546719074) * MODEL1_texOff(vec2(0,0));
res += mat4(0.004464849364012,0.096174381673336,0.182303085923195,-0.009295977652073,-0.049444161355495,-0.037051830440760,0.166447907686234,-0.042741224169731,-0.205039694905281,-0.054770555347204,-0.081904426217079,-0.040189091116190,0.108201242983341,0.040668934583664,0.058489374816418,-0.049018722027540) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.008616145700216,0.077279582619667,-0.054892871528864,0.037872232496738,0.037223141640425,0.104706235229969,0.090602993965149,0.134451314806938,0.110548079013824,-0.121819347143173,0.175558224320412,0.253465265035629,0.107359029352665,0.206653341650963,-0.102994874119759,0.134250923991203) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.023182157427073,-0.010972289368510,-0.022252531722188,0.019163187593222,0.039466604590416,-0.035327352583408,-0.126085430383682,0.059846211224794,0.056653693318367,0.130122974514961,0.038099158555269,0.003678750013933,0.070505373179913,-0.030466582626104,-0.029785040766001,-0.028076570481062) * MODEL1_texOff(vec2(1,0));
res += mat4(0.146249651908875,-0.003853132948279,-0.113304734230042,-0.039395328611135,0.128790766000748,0.067340791225433,0.046480901539326,0.043707758188248,0.294347405433655,0.165156245231628,-0.057863783091307,-0.164127230644226,0.056086331605911,0.006228560116142,-0.057495143264532,-0.047123007476330) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.258797556161880,0.277570098638535,-0.048913426697254,-0.111585557460785,-0.173791050910950,0.069239906966686,-0.078370153903961,-0.278260767459869,-0.092195898294449,0.063483588397503,-0.169489696621895,-0.027955194935203,0.001353156869300,-0.038903497159481,0.024831401184201,0.016791392117739) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.066930472850800,0.051218532025814,-0.014404099434614,-0.026548206806183,-0.248783394694328,0.173941433429718,0.004937446676195,-0.326351284980774,-0.121441692113876,-0.157727271318436,0.083370298147202,0.055461961776018,0.021232353523374,-0.069395825266838,0.059277661144733,0.114123031497002) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.048202693462372,-0.067602701485157,-0.076968140900135,-0.203207015991211,-0.093275777995586,0.147321820259094,-0.095855556428432,-0.033643808215857,-0.149844825267792,-0.025150138884783,0.304416626691818,0.145538613200188,0.156253501772881,0.008179778233171,0.008857402950525,0.037837836891413) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.181910037994385,0.237650513648987,-0.049193739891052,-0.263827323913574,0.049909729510546,-0.062197607010603,-0.218416675925255,-0.187859892845154,-0.075887210667133,-0.201396152377129,0.107681602239609,-0.040656287223101,-0.028912140056491,-0.213587269186974,0.003343448508531,0.060159672051668) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.328604906797409,0.058717567473650,0.117963232100010,-0.222478523850441,-0.475119978189468,-0.020438523963094,-0.074051804840565,0.341750472784042,-0.069075733423233,0.015698486939073,0.337098747491837,0.200882837176323,0.116998516023159,-0.124887339770794,0.114673450589180,0.064807362854481) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.115243099629879,0.079944707453251,0.081382021307945,-0.056277409195900,0.252761572599411,0.119722895324230,0.147413358092308,-0.198652923107147,-0.269658416509628,-0.118668787181377,0.166167303919792,0.042973756790161,0.031681723892689,-0.018677646294236,0.080144695937634,0.150746688246727) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.117620214819908,0.183268830180168,-0.043369431048632,-0.150888577103615,-0.018499923869967,0.082939386367798,0.020012879744172,-0.032689247280359,-0.034324884414673,-0.061430629342794,-0.009684672579169,0.202465251088142,0.067099153995514,-0.071559026837349,0.058800987899303,0.003926041070372) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.001171551528387,0.013771603815258,0.061627205461264,-0.197565123438835,-0.141467437148094,0.025746416300535,0.203678160905838,0.034824725240469,0.151759088039398,-0.108092680573463,0.286842197179794,0.018326373770833,0.081302553415298,-0.335787445306778,0.120158284902573,0.172824978828430) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.216988787055016,-0.038102068006992,0.069394633173943,0.064997322857380,0.158419564366341,0.029093861579895,-0.006478952709585,-0.077134191989899,-0.006263718940318,0.041216555982828,0.301884382963181,0.177903532981873,0.126902863383293,-0.021274833008647,0.017026187852025,-0.042872074991465) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.069047406315804,0.200920298695564,0.008836679160595,-0.051967352628708,-0.138900429010391,0.081676818430424,-0.101250596344471,-0.118937224149704,0.018904307857156,0.000239735541982,-0.013709058985114,-0.021455496549606,-0.028835693374276,0.146986767649651,-0.041995860636234,-0.018231851980090) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.145344316959381,0.070205233991146,0.040497027337551,0.174788534641266,-0.180981561541557,0.109038978815079,-0.181721657514572,-0.029266828671098,-0.025242235511541,-0.381917893886566,0.050504520535469,0.016667058691382,-0.065959304571152,0.079158797860146,-0.081093862652779,-0.066365920007229) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.079950585961342,-0.060460790991783,-0.016182841733098,-0.006686742883176,0.004062341991812,-0.014283478260040,0.005248969420791,-0.120750740170479,-0.039009109139442,-0.121574811637402,-0.125688195228577,0.017711369320750,0.059740409255028,0.302123636007309,0.113997466862202,-0.111866019666195) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.021553399041295,0.004864594899118,-0.036381583660841,-0.022796085104346,-0.045574653893709,-0.339106172323227,0.100582264363766,0.004725301172584,0.008465101011097,-0.086695224046707,0.019436664879322,0.032343819737434,-0.051313500851393,0.065734662115574,0.024931713938713,-0.015932017937303) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.027053771540523,0.007669294718653,0.038298256695271,-0.078878827393055,-0.214430063962936,0.062308210879564,-0.037210416048765,-0.030276922509074,-0.000219865542022,-0.427244782447815,0.020308753475547,-0.025570284575224,-0.059008050709963,-0.109497107565403,-0.030984433367848,0.032724954187870) * MODEL3_texOff(vec2(0,0));
res += mat4(0.125831201672554,-0.066310793161392,0.227687314152718,0.040776398032904,-0.038458552211523,0.153722748160362,0.134513810276985,-0.089144684374332,-0.114739224314690,-0.279313087463379,0.095932126045227,0.029380906373262,-0.044085755944252,0.336195081472397,-0.099576808512211,-0.118877962231636) * MODEL3_texOff(vec2(0,1));
res += mat4(0.000813322840258,0.052913818508387,-0.097469046711922,0.136818602681160,-0.066084064543247,0.100653991103172,0.011512738652527,-0.094491750001907,0.078243017196655,-0.083015032112598,-0.027821481227875,-0.100599661469460,-0.040275987237692,0.162498846650124,-0.084425576031208,0.075440503656864) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.073616169393063,0.077434457838535,-0.057264953851700,-0.179942473769188,-0.136421501636505,0.120518513023853,0.174710348248482,-0.113996960222721,0.102465137839317,-0.107505179941654,-0.113494262099266,-0.160272791981697,-0.022814037278295,0.020266028121114,-0.125561535358429,0.099982626736164) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.051589649170637,-0.147040203213692,0.028797322884202,0.050543110817671,0.042043641209602,0.032119307667017,0.018932146951556,-0.063410699367523,0.008686193265021,-0.069881677627563,-0.111559443175793,-0.012494741007686,0.027633648365736,0.134105443954468,0.089680239558220,0.010716589167714) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.104881934821606,0.121100783348083,0.166766062378883,-0.090152814984322,-0.087960943579674,0.112639680504799,-0.144096702337265,0.063869178295135,-0.001105801668018,-0.006655140314251,-0.052713822573423,-0.049125120043755,0.076692953705788,0.000628598209005,-0.092896625399590,-0.036082398146391) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.062409177422523,0.038122240453959,0.126851499080658,0.147951871156693,-0.105180472135544,-0.073394961655140,-0.139203131198883,-0.025966472923756,0.117015756666660,0.042446732521057,0.101327382028103,0.085576236248016,-0.154194280505180,0.085987932980061,-0.075379088521004,-0.146285399794579) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.089809693396091,-0.006076208315790,0.187275573611259,-0.035872086882591,-0.161606609821320,-0.056380823254585,-0.101859435439110,0.057456977665424,0.095714941620827,-0.081834137439728,-0.055071640759706,-0.061198674142361,0.020216273143888,0.094382561743259,-0.146937847137451,-0.175648123025894) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.050689440220594,-0.010058949701488,0.097571209073067,0.125594496726990,-0.079194366931915,0.239044606685638,0.017148219048977,-0.109874941408634,0.060630213469267,-0.008409128524363,0.044414009898901,0.159294739365578,0.066703774034977,-0.035959053784609,0.080532491207123,-0.067523717880249) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.021817874163389,0.075133055448532,0.000602138694376,0.179473072290421,-0.236421659588814,-0.187099441885948,-0.119087509810925,0.152786374092102,-0.044891737401485,0.406263023614883,-0.062051784247160,0.103005833923817,0.162262961268425,-0.033971693366766,0.177447080612183,-0.258901476860046) * MODEL4_texOff(vec2(0,0));
res += mat4(0.105187468230724,0.144515305757523,0.140524595975876,-0.026620091870427,-0.048290163278580,0.015483272261918,0.032935969531536,-0.031596649438143,0.257758557796478,0.027711858972907,-0.080810181796551,0.108067534863949,-0.043439235538244,0.019836135208607,-0.123686209321022,0.087654978036880) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.056306183338165,0.006832977756858,0.038761809468269,0.073994711041451,0.023313412442803,-0.028740426525474,-0.016760865226388,-0.153675332665443,0.105116747319698,-0.078514955937862,-0.081859961152077,0.099279507994652,0.051647074520588,-0.085395894944668,0.082798980176449,-0.031859710812569) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.001725151436403,0.036463875323534,0.254029452800751,-0.126367077231407,-0.175920993089676,-0.023850958794355,-0.066211715340614,-0.073984928429127,-0.048036452382803,-0.355587929487228,0.070482894778252,0.057186048477888,0.094967812299728,-0.015221124514937,0.038547158241272,0.088865719735622) * MODEL4_texOff(vec2(1,0));
res += mat4(0.021277980878949,0.007054734043777,0.069941982626915,0.057628646492958,-0.023903783410788,-0.037853602319956,0.089299015700817,0.026779731735587,0.004426743835211,-0.225570127367973,-0.189699143171310,0.081502273678780,0.026806989684701,0.031985778361559,-0.096890576183796,-0.112091884016991) * MODEL4_texOff(vec2(1,1));
res += mat4(0.025054140016437,0.052858632057905,0.020263439044356,0.108022883534431,-0.092333577573299,-0.028909742832184,-0.131175026297569,-0.107147708535194,-0.110724799335003,0.086999595165253,0.033746026456356,-0.078310742974281,0.082170031964779,-0.085401810705662,0.039549596607685,0.067395120859146) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.058268882334232,0.073897138237953,-0.037642564624548,-0.002218106761575,-0.020077219232917,0.095934502780437,-0.170956090092659,-0.150256618857384,0.180451810359955,-0.009869991801679,0.023300945758820,-0.116563156247139,0.092872858047485,-0.022521063685417,0.100292854011059,0.074521042406559) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.041456408798695,0.063982471823692,0.001898790244013,-0.077865257859230,0.026924856007099,0.130533292889595,-0.238586440682411,-0.153609663248062,-0.046027991920710,0.009120746515691,-0.108912870287895,0.035117208957672,-0.038764156401157,-0.105711482465267,0.003985118586570,0.106587804853916) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.045000761747360,-0.038971379399300,0.154486492276192,0.170753628015518,-0.008768710307777,0.060545504093170,-0.123490467667580,-0.151820033788681,-0.087487094104290,-0.037784323096275,0.132252573966980,-0.062439050525427,0.086191728711128,0.042438630014658,-0.028052585199475,0.050867084413767) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.216306790709496,0.070871427655220,-0.024568095803261,-0.109659373760223,0.081753171980381,0.074854753911495,-0.312875598669052,-0.105261109769344,0.209073618054390,-0.021797189489007,0.051964052021503,0.084145508706570,-0.150962486863136,-0.351851940155029,0.123959384858608,0.048395827412605) * MODEL5_texOff(vec2(0,0));
res += mat4(0.060960400849581,0.082615800201893,-0.077551759779453,-0.079387985169888,0.147938162088394,0.022013388574123,-0.287440299987793,-0.165842607617378,0.201579645276070,0.097298614680767,-0.044752474874258,-0.155497178435326,-0.068142659962177,-0.001087042270228,0.003221218008548,0.098806440830231) * MODEL5_texOff(vec2(0,1));
res += mat4(0.064947776496410,-0.080007955431938,0.377468645572662,-0.002161042764783,0.034900028258562,-0.079858049750328,-0.215849980711937,-0.057664338499308,-0.088350079953671,0.130703762173653,-0.079075224697590,-0.066820740699768,0.049918029457331,-0.022795893251896,0.013397291302681,0.110831744968891) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.034491080790758,-0.005895074922591,0.108517251908779,0.041106529533863,0.082816109061241,0.082762017846107,-0.245370343327522,-0.121367365121841,0.021438742056489,0.042846571654081,0.013619937933981,0.010498202405870,-0.004697412718087,0.022885993123055,0.026159627363086,0.082510754466057) * MODEL5_texOff(vec2(1,0));
res += mat4(0.063925489783287,0.035839222371578,-0.072573624551296,-0.020877303555608,-0.088934287428856,0.121394000947475,-0.346921563148499,-0.121114224195480,0.033489976078272,0.117466457188129,0.103771515190601,0.038432341068983,0.142507344484329,-0.085746355354786,-0.060205962508917,0.119544878602028) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.090091586112976,-0.001532925642096,-0.134102389216423,0.003607124555856,0.061790611594915,-0.003028133651242,0.189244642853737,0.031006051227450,-0.122487686574459,0.145397558808327,0.009091485291719,-0.213248863816261,0.050591174513102,0.126005053520203,-0.151490807533264,-0.023600755259395) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.011988638900220,0.134106785058975,0.067710138857365,0.001477963640355,0.082631357014179,-0.148251369595528,0.086797691881657,0.188427105545998,-0.180905073881149,-0.349386036396027,0.204695299267769,0.177616626024246,0.043631609529257,0.212327510118484,0.050485160201788,-0.048276849091053) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.066244974732399,-0.078982234001160,0.041573237627745,-0.079697303473949,0.062858261168003,-0.118404366075993,0.010504108853638,0.142943441867828,-0.113782308995724,0.022948607802391,-0.045011118054390,-0.136380627751350,0.202797159552574,0.095007911324501,0.067124262452126,0.048966310918331) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.086165800690651,0.258388489484787,0.128610432147980,0.006464471574873,0.089847117662430,-0.088491849601269,0.065801657736301,0.269354403018951,0.086140900850296,-0.037587769329548,-0.000214455270907,0.058946236968040,0.024472309276462,0.036755494773388,0.040751263499260,-0.076773338019848) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.118025541305542,-0.104222252964973,0.113396756350994,0.201628744602203,0.044794782996178,-0.071409516036510,0.037109129130840,0.201989412307739,-0.075340062379837,-0.011626620776951,-0.123330898582935,0.320218473672867,-0.056685332208872,0.093124635517597,0.069481559097767,-0.107048548758030) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.106510303914547,-0.191160365939140,0.051306936889887,0.156691983342171,0.248674198985100,-0.092431850731373,0.057025302201509,0.117771260440350,-0.222516894340515,0.036226809024811,-0.171523943543434,-0.023076208308339,0.134024783968925,-0.003269474254921,0.118548206984997,-0.037596289068460) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.058002203702927,0.060523107647896,0.077656537294388,0.010731017217040,-0.014293885789812,0.013370896689594,0.094649128615856,0.159117728471756,-0.046030342578888,0.158851623535156,0.013499964028597,0.052350886166096,0.041948176920414,0.023405484855175,0.008508253842592,-0.018127009272575) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.109575994312763,0.257888466119766,-0.138768747448921,-0.003727609524503,0.038658499717712,-0.061812687665224,-0.045679561793804,0.163007378578186,-0.044322237372398,-0.003156062448397,0.051349602639675,0.074006110429764,-0.137907698750496,-0.099829226732254,0.120266489684582,-0.018717121332884) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.216546624898911,0.006277354899794,0.149831086397171,0.022304013371468,0.146156683564186,-0.090247079730034,0.006176752038300,0.122129812836647,-0.180064588785172,-0.021045207977295,0.052892401814461,-0.011460394598544,-0.062484011054039,0.132068544626236,0.176259368658066,-0.074423693120480) * MODEL6_texOff(vec2(1,1));
res += FEATURE3_texOff(0);
res = max(res, vec4(0.0)) + vec4(0.103279709815979,-0.010532716289163,-0.017237061634660,0.359872221946716) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!BIND FEATURE4
//!SAVE MODEL10
//!DESC [AiUpscale_HQ_3x_Photo] mapping 4_4

vec4 hook()
{
vec4 res = vec4(0.086984649300575,-0.016266826540232,-0.077539138495922,-0.015142095275223);
res += mat4(0.171291127800941,0.033082373440266,0.013576382771134,0.015318669378757,-0.446772187948227,-0.021451296284795,0.117730654776096,0.000020522669729,0.055655896663666,0.091561071574688,-0.137304455041885,0.058462880551815,0.030094718560576,-0.012385062873363,-0.095174878835678,0.121258623898029) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.066753774881363,-0.065188035368919,0.120119199156761,-0.161480888724327,0.506023824214935,0.055632539093494,-0.164843335747719,-0.016045745462179,-0.071037605404854,0.126241043210030,-0.142466768622398,-0.078337833285332,0.048607263714075,-0.154604136943817,0.015143519267440,0.065343931317329) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.062505975365639,-0.032589036971331,0.023636752739549,-0.062852121889591,0.037652894854546,0.103022530674934,0.064449712634087,-0.081514276564121,0.000849426782224,0.013183857314289,-0.093689173460007,-0.100774705410004,0.026252632960677,-0.033637501299381,0.007398373447359,0.048813305795193) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.215023651719093,0.077196829020977,0.047081433236599,-0.021394360810518,-0.221498444676399,-0.092385426163673,0.021194098517299,0.108168676495552,-0.145173385739326,-0.100064605474472,0.139959231019020,0.129215329885483,-0.122721545398235,-0.092173933982849,-0.061677023768425,0.095801234245300) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.177559822797775,0.186471506953239,0.088100627064705,-0.120503805577755,0.380570620298386,-0.247016519308090,-0.072078369557858,-0.211399614810944,-0.072274409234524,0.166904121637344,0.191369131207466,0.085786633193493,-0.113289609551430,0.124341368675232,-0.112182028591633,0.168211773037910) * MODEL1_texOff(vec2(0,0));
res += mat4(0.015058716759086,0.013145020231605,0.058990940451622,0.098779186606407,0.113493598997593,0.094337508082390,-0.123522348701954,0.125725060701370,0.147063255310059,-0.091127648949623,0.012738551013172,-0.002875874051824,-0.116612784564495,0.065918348729610,-0.075075179338455,0.162776768207550) * MODEL1_texOff(vec2(0,1));
res += mat4(0.252746134996414,-0.029890557751060,0.052469037473202,0.041359145194292,-0.065537273883820,-0.018137080594897,0.149707153439522,0.060872074216604,-0.037952616810799,0.025183247402310,0.107708953320980,0.144443213939667,-0.071216538548470,-0.016044510528445,-0.111725822091103,0.010062605142593) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.141601756215096,-0.032401278614998,0.037877481430769,0.039684616029263,0.153778597712517,-0.016933495178819,0.106600917875767,-0.033992324024439,0.209235727787018,-0.069807305932045,-0.093470297753811,-0.044567231088877,0.020450929179788,0.053850509226322,-0.010285627096891,-0.054987091571093) * MODEL1_texOff(vec2(1,0));
res += mat4(0.030929157510400,0.034911978989840,0.105485238134861,0.068306542932987,0.055101927369833,0.094512291252613,0.080230668187141,0.228407755494118,0.117143645882607,0.142727032303810,-0.115858323872089,-0.228143960237503,0.018491981551051,0.031406924128532,-0.046944901347160,0.032603435218334) * MODEL1_texOff(vec2(1,1));
res += mat4(0.047550730407238,-0.201599448919296,-0.057880386710167,-0.189385667443275,0.390019357204437,0.057227659970522,0.103683963418007,-0.042403575032949,0.184177294373512,-0.019873630255461,-0.034355279058218,-0.161850064992905,0.066289834678173,-0.006513680797070,-0.045001100748777,-0.013803003355861) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.010052042081952,-0.161068677902222,-0.041825376451015,-0.096206143498421,-0.041223723441362,-0.246656969189644,0.246650144457817,-0.126080691814423,-0.011089697480202,-0.094306513667107,0.199491560459137,-0.124911487102509,-0.031694177538157,0.004246730823070,-0.043314434587955,-0.062891937792301) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.131309777498245,0.013718424364924,-0.051502961665392,-0.024751298129559,-0.032998133450747,-0.165651366114616,0.039412923157215,-0.045796249061823,-0.070119798183441,-0.007398208137602,-0.037246499210596,-0.089632175862789,0.086764715611935,-0.030219390988350,0.015421778894961,0.010531370528042) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.072510033845901,-0.040636155754328,-0.299125492572784,-0.114329487085342,0.124020233750343,-0.025292459875345,0.090480543673038,-0.180085733532906,0.027794176712632,-0.010524795390666,0.063403405249119,0.070921719074249,-0.023962857201695,0.100362725555897,0.072772800922394,0.023348104208708) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.060113567858934,-0.239282220602036,0.197162628173828,-0.011307629756629,-0.086268842220306,0.222902417182922,0.049014825373888,0.212614879012108,0.043085385113955,0.034364078193903,0.398545771837234,-0.086081191897392,-0.177760213613510,0.053486052900553,0.123458050191402,0.006416179239750) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.190799057483673,-0.073027767241001,-0.000525194394868,-0.150663763284683,-0.113678343594074,-0.003041401039809,0.007918022572994,0.064336046576500,-0.064785785973072,0.124388895928860,-0.013071279041469,0.102897785604000,-0.028027933090925,-0.010111545212567,0.026824589818716,-0.023831883445382) * MODEL2_texOff(vec2(0,1));
res += mat4(0.026674279943109,0.063785769045353,-0.272978693246841,-0.006511019077152,0.021513558924198,0.034098770469427,0.316801995038986,0.050500705838203,-0.038631577044725,0.059068795293570,0.119454428553581,-0.019708329811692,0.008642319589853,0.032855033874512,-0.043748442083597,-0.003232541028410) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.067118301987648,-0.209741353988647,0.123084999620914,0.018513998016715,-0.091543845832348,0.007691848557442,-0.184492737054825,0.102010063827038,-0.180518507957458,0.085774943232536,0.107075750827789,0.098801255226135,-0.039297915995121,0.071971848607063,0.172724634408951,-0.007329511456192) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.093110196292400,-0.054368566721678,0.080241441726685,-0.032993044704199,0.012532659806311,0.005031300242990,-0.087006814777851,0.044017076492310,-0.081407487392426,-0.034466732293367,-0.015606609173119,0.109630346298218,0.047004330903292,0.033221505582333,-0.014246595092118,-0.010774181224406) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.049084626138210,0.052135076373816,-0.043309934437275,0.051734045147896,0.000793341489043,-0.072325445711613,-0.087725408375263,-0.015407836064696,-0.062208395451307,-0.048621408641338,-0.038420595228672,0.007736561354250,0.034547567367554,0.070390596985817,-0.118312314152718,-0.011302362196147) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.086954005062580,0.047819107770920,-0.101050183176994,0.149733796715736,-0.034307707101107,-0.057997204363346,0.020161598920822,0.050165202468634,-0.275547415018082,-0.118849650025368,0.000254214450251,0.023941172286868,-0.149491667747498,0.053317401558161,0.075623504817486,-0.009745630435646) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.086011298000813,0.035805672407150,-0.018974060192704,0.002080532489344,-0.181519776582718,-0.020446144044399,-0.055874835699797,0.048597887158394,0.022478319704533,-0.115100674331188,0.020344659686089,0.003492777701467,-0.116303056478500,0.071992069482803,-0.052801627665758,0.070610255002975) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.096436269581318,-0.002852596808225,0.117059260606766,-0.031470481306314,0.005628442857414,0.004431957844645,0.010464034974575,-0.032580733299255,-0.029016094282269,-0.005940305069089,-0.105941653251648,0.027138821780682,0.029458716511726,0.019627127796412,-0.028196260333061,0.000547387055121) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.048117332160473,0.065574213862419,-0.041433025151491,0.063178427517414,0.059540171176195,-0.066664539277554,-0.015593257732689,0.041038446128368,-0.464253932237625,-0.024197719991207,0.023451559245586,-0.025905834510922,0.066359207034111,0.110760718584061,-0.048404753208160,-0.021022718399763) * MODEL3_texOff(vec2(0,0));
res += mat4(0.074186749756336,-0.023988530039787,-0.050454370677471,-0.193783223628998,-0.154728397727013,-0.068143166601658,-0.079835213720798,0.102202594280243,-0.106046400964260,-0.053725250065327,0.019260717555881,-0.082257680594921,-0.072138808667660,-0.027911407873034,-0.073962487280369,-0.075125463306904) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.095601201057434,0.013988748192787,-0.056034576147795,-0.017530230805278,0.146782964468002,-0.036036971956491,0.011896204203367,0.015000429004431,-0.029013650491834,0.059497781097889,-0.100241273641586,0.056759949773550,0.117704696953297,-0.071081846952438,0.006762338336557,0.051458220928907) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.055122260004282,0.047984350472689,-0.031450018286705,-0.036150373518467,0.019728323444724,0.022077592089772,-0.035234164446592,0.118604034185410,-0.036608524620533,-0.067277811467648,-0.073750078678131,0.141040742397308,0.036018695682287,0.028798693791032,0.011717618443072,0.045406188815832) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.101590640842915,0.031900603324175,0.073736406862736,0.058305431157351,0.087621487677097,-0.090676933526993,0.007017656229436,0.041078776121140,-0.035629440099001,-0.045583657920361,-0.038714241236448,0.122596926987171,0.036416511982679,0.109339818358421,0.020209182053804,0.080824606120586) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.197584509849548,0.120340317487717,-0.047062247991562,-0.132899612188339,-0.006670913659036,-0.087521448731422,0.185780048370361,0.109591968357563,0.002193474443629,0.028978306800127,0.057402901351452,-0.018474962562323,0.041772641241550,-0.057625200599432,-0.028160156682134,-0.133243784308434) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.088442057371140,0.111123338341713,0.000119090742373,0.006643423344940,-0.052437659353018,-0.090924404561520,0.022052731364965,0.014482784084976,-0.111556723713875,0.072561435401440,0.005754091311246,-0.134348422288895,0.088760793209076,0.000039929025661,-0.039292320609093,-0.045099776238203) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.220319792628288,0.076609052717686,-0.066128261387348,-0.215805783867836,0.003740117186680,-0.007390575483441,0.041432846337557,-0.102378979325294,0.192487195134163,0.016776515170932,0.102268122136593,0.029763832688332,-0.059072181582451,-0.064887903630733,-0.080093257129192,-0.026956994086504) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.172339498996735,0.016481962054968,-0.167490184307098,-0.053146705031395,0.118576951324940,-0.006615186110139,0.016148122027516,0.130352035164833,0.113795734941959,-0.062963329255581,0.042966902256012,-0.027263395488262,0.029103944078088,0.109704196453094,-0.109737500548363,-0.079008623957634) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.086363658308983,0.082914359867573,0.006814751774073,-0.143596068024635,0.146992012858391,-0.275540679693222,0.045629091560841,0.003090435639024,-0.019374366849661,-0.159733772277832,-0.179679393768311,-0.219392225146294,0.002112210728228,0.033934950828552,0.051134724169970,-0.094132713973522) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.228596732020378,0.064819566905499,-0.125703275203705,0.187857449054718,0.016876487061381,0.049311820417643,0.011160554364324,0.086552888154984,0.091030679643154,0.006249140016735,0.043820310384035,-0.188174352049828,-0.119671061635017,0.061482999473810,0.094156228005886,0.140935853123665) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.337999314069748,0.098618313670158,0.165559560060501,-0.047959651798010,0.106930658221245,-0.189939007163048,-0.127103224396706,-0.035080075263977,-0.144148677587509,0.050355251878500,0.172863289713860,0.352047115564346,0.158248245716095,-0.003267627675086,-0.141213983297348,-0.106174230575562) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.209587872028351,0.194245696067810,0.154762715101242,-0.156689554452896,-0.068327233195305,0.003719742177054,-0.077623143792152,0.065764576196671,-0.089990653097630,0.041745468974113,-0.138632312417030,0.245899736881256,0.039037797600031,0.032989781349897,0.140782132744789,0.026001587510109) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.184722930192947,0.050366356968880,0.111792162060738,-0.083180256187916,-0.126859158277512,0.053900051862001,0.015562161803246,-0.013874114491045,-0.032671842724085,-0.120512731373310,0.007504635490477,0.205453634262085,-0.031278230249882,0.072960659861565,-0.078395538032055,-0.039304822683334) * MODEL4_texOff(vec2(1,1));
res += mat4(0.031400289386511,-0.082889616489410,0.003452561562881,-0.010904918424785,-0.068328060209751,0.104330062866211,-0.101893670856953,0.057087082415819,-0.092782601714134,0.065327860414982,-0.235962554812431,-0.025081468746066,-0.046463087201118,-0.028688831254840,-0.115561135113239,0.066316604614258) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.123538546264172,-0.023714769631624,-0.011336850002408,0.099181532859802,-0.123253487050533,0.049496315419674,-0.058868877589703,0.038645289838314,-0.191467121243477,-0.038280047476292,-0.016851304098964,-0.042152959853411,-0.111251413822174,-0.230844676494598,-0.007861201651394,-0.014680947177112) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.069040678441525,-0.017946006730199,-0.009167091920972,-0.019753441214561,-0.148388504981995,0.008078686892986,-0.073500260710716,0.042644135653973,0.048156388103962,-0.097332440316677,0.028112594038248,-0.015336942858994,-0.280448228120804,-0.053886648267508,0.107492417097092,0.170413002371788) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.044225264340639,0.206865951418877,-0.173851877450943,0.036917965859175,-0.095469459891319,0.007108249235898,-0.052974119782448,-0.097782768309116,-0.232475608587265,-0.085693508386612,-0.096112526953220,-0.048362772911787,0.037314619868994,-0.100634030997753,-0.047110654413700,-0.033147640526295) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.023159950971603,-0.116521790623665,0.104624696075916,-0.090313419699669,-0.140384420752525,0.126341015100479,-0.106360867619514,0.013616636395454,-0.256895065307617,0.131402388215065,-0.020810296759009,0.201127022504807,-0.106154769659042,-0.025173503905535,0.162592157721519,-0.281457960605621) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.081235289573669,-0.022363942116499,-0.044506046921015,0.084359176456928,-0.215261712670326,0.029577530920506,-0.064988724887371,0.151894077658653,0.003377301385626,-0.006197136361152,-0.027912946417928,0.066746115684509,-0.154226139187813,-0.079855263233185,0.049887679517269,-0.153278455138206) * MODEL5_texOff(vec2(0,1));
res += mat4(0.074651733040810,0.134454667568207,-0.033077210187912,0.158105835318565,0.178728729486465,0.014880253002048,-0.029095111414790,-0.068993806838989,-0.161921322345734,0.008062572218478,0.098519615828991,-0.060171864926815,-0.089200951159000,-0.028322746977210,0.157695367932320,0.045162785798311) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.058772016316652,0.064231418073177,0.023705322295427,0.114212766289711,0.115116596221924,-0.060675151646137,-0.248263388872147,0.062257129698992,-0.026542207226157,0.087347127497196,0.072267740964890,-0.250593602657318,0.090361557900906,-0.145552441477776,0.000962622871157,-0.066496938467026) * MODEL5_texOff(vec2(1,0));
res += mat4(0.055733188986778,0.004156088456511,-0.049545470625162,-0.070764601230621,-0.004051306284964,-0.118623100221157,-0.093621768057346,-0.022637827321887,0.054816950112581,0.091300502419472,0.009613340720534,0.080865338444710,-0.100831501185894,0.013924479484558,-0.001832464942709,0.111489981412888) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.093212537467480,0.051842622458935,-0.040725540369749,-0.073461033403873,-0.032958414405584,-0.009521305561066,-0.004347403068095,-0.022755054756999,0.182033255696297,0.043670706450939,-0.091046601533890,0.064395613968372,-0.133113384246826,0.040438942611217,-0.203507140278816,-0.113022729754448) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.139798030257225,0.098658695816994,0.137485101819038,0.033091593533754,0.077290073037148,-0.040993012487888,-0.009734989143908,0.009503629058599,-0.067840404808521,0.066310569643974,0.062156908214092,0.107864715158939,-0.024449555203319,-0.043479416519403,-0.128829538822174,-0.066346786916256) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.075526893138885,-0.019367780536413,-0.212647825479507,-0.073481619358063,-0.066116400063038,-0.058854181319475,0.127681925892830,-0.077225722372532,0.237264975905418,-0.054399203509092,-0.022557796910405,0.035815484821796,-0.031735658645630,0.031788412481546,0.027059487998486,0.040049128234386) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.100127369165421,0.007931889034808,-0.050118617713451,-0.037059456110001,-0.068362489342690,0.086123131215572,0.027651643380523,0.042432527989149,0.079252727329731,-0.064024202525616,-0.007699897512794,0.043409407138824,0.095502257347107,-0.027518397197127,-0.436822593212128,-0.026895362883806) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.155607759952545,-0.229525864124298,0.030513120815158,-0.010617656633258,-0.055663589388132,0.070010870695114,-0.202635645866394,0.119997896254063,-0.133982867002487,0.159523949027061,0.201688006520271,0.301015555858612,0.202259913086891,0.065926060080528,-0.161656498908997,-0.067981146275997) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.005926107522100,0.001349765690975,-0.120623089373112,-0.229941397905350,-0.019000640138984,-0.054390158504248,0.195782840251923,0.085485197603703,0.069479748606682,0.015274938195944,0.015669848769903,0.001882353797555,0.094136476516724,0.000037005396734,-0.066264331340790,-0.086907088756561) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.106343924999237,-0.066935911774635,-0.141641274094582,0.057181473821402,-0.172790229320526,-0.042144004255533,0.030590569600463,0.097437247633934,0.035072520375252,-0.050079345703125,-0.145671799778938,0.103551864624023,-0.088938094675541,0.087540060281754,0.067775033414364,-0.094939917325974) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.066192805767059,-0.051101315766573,0.303969830274582,-0.042426832020283,-0.180007785558701,-0.114064157009125,-0.160676196217537,0.005962943192571,0.094877399504185,0.140657380223274,0.016432397067547,-0.061332486569881,-0.082464270293713,0.148923352360725,-0.148676261305809,-0.083846881985664) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.266415387392044,-0.042777881026268,-0.052210748195648,-0.164279505610466,-0.104993797838688,-0.066594712436199,0.060810290277004,0.201319903135300,0.075596638023853,0.036535449326038,0.054749999195337,-0.204262718558311,0.156068354845047,-0.025280795991421,-0.180499166250229,-0.201274126768112) * MODEL6_texOff(vec2(1,1));
res += FEATURE4_texOff(0);
res = max(res, vec4(0.0)) + vec4(0.262762814760208,0.961706221103668,0.011325201019645,0.346173793077469) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!BIND FEATURE5
//!SAVE MODEL11
//!DESC [AiUpscale_HQ_3x_Photo] mapping 4_5

vec4 hook()
{
vec4 res = vec4(-0.005048562306911,-0.037835225462914,-0.413386762142181,0.143957480788231);
res += mat4(0.022009698674083,-0.185724973678589,0.097917020320892,-0.071744054555893,-0.079413354396820,0.046411968767643,-0.088414475321770,-0.021228188648820,-0.035854592919350,0.092781104147434,0.032981753349304,-0.093024067580700,-0.035698190331459,0.001681762398221,-0.252521008253098,0.121528796851635) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.122783660888672,0.005351272877306,0.099268384277821,0.080811932682991,-0.036688439548016,-0.035614885389805,-0.278772026300430,-0.107043720781803,-0.005370329134166,0.060440357774496,0.029037462547421,-0.095452502369881,-0.310334056615829,0.002153403125703,-0.214547857642174,0.135957166552544) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.141408801078796,0.051388334482908,0.117539145052433,0.062572568655014,-0.089811280369759,0.199294120073318,-0.007999999448657,-0.098207145929337,0.116058662533760,0.231193184852600,0.081885948777199,-0.073859833180904,-0.195190235972404,0.041193831712008,-0.081857107579708,0.090434364974499) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.051063958555460,-0.111628413200378,-0.019549766555429,0.030429685488343,-0.026384869590402,0.003399047069252,0.036119252443314,-0.053637787699699,-0.022760335355997,0.028174107894301,-0.194937661290169,0.055868383497000,-0.116538569331169,-0.104481965303421,-0.309837758541107,0.035369254648685) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.024957200512290,-0.129683613777161,0.168434739112854,-0.011334568262100,0.027819583192468,0.107616141438484,0.092192754149437,0.117830857634544,-0.087568521499634,-0.030318692326546,0.136811360716820,0.146127432584763,-0.203129470348358,-0.215596273541451,-0.256423920392990,-0.061596438288689) * MODEL1_texOff(vec2(0,0));
res += mat4(0.050302263349295,-0.023680353537202,0.195588484406471,0.081920146942139,-0.137970030307770,-0.090548500418663,0.060937799513340,-0.081948392093182,-0.080896191298962,-0.023689679801464,0.011784778907895,-0.029496638104320,0.011742687784135,-0.019143441691995,-0.093761168420315,-0.014998321421444) * MODEL1_texOff(vec2(0,1));
res += mat4(0.127002075314522,-0.116138502955437,-0.007909841835499,-0.026823827996850,0.059045027941465,0.018983168527484,0.109506987035275,-0.127172738313675,0.130250319838524,0.055214770138264,-0.239423006772995,0.051114864647388,0.013998739421368,-0.064096011221409,0.025597363710403,-0.100199073553085) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.211884468793869,-0.024203257635236,-0.000343939871527,0.014067346230149,-0.014937811531126,-0.065773256123066,0.066639617085457,-0.084142036736012,0.033820804208517,-0.009800150059164,-0.051193293184042,0.106856413185596,0.127148330211639,0.006708052009344,0.069585509598255,-0.033367291092873) * MODEL1_texOff(vec2(1,0));
res += mat4(0.103746391832829,-0.033704586327076,0.105685986578465,-0.000375004630769,-0.035037975758314,0.029443623498082,0.014512812718749,-0.102007448673248,0.063160449266434,0.172074705362320,-0.040322735905647,-0.054328896105289,0.085544489324093,-0.124214880168438,-0.067135296761990,-0.003807748202235) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.062449332326651,-0.074005089700222,-0.110684081912041,-0.020469889044762,-0.092416413128376,0.002044378314167,0.115520782768726,0.044322598725557,-0.094839088618755,0.113753192126751,0.040322128683329,-0.137451514601707,-0.101666986942291,-0.011593074537814,0.005464216694236,0.073984839022160) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.209718823432922,-0.122938185930252,0.059565037488937,-0.050906643271446,-0.298654824495316,0.109910219907761,0.137100741267204,0.077231153845787,-0.086334615945816,0.097966946661472,0.018266696482897,-0.097839154303074,-0.164510592818260,0.023805305361748,-0.049685683101416,-0.006066539790481) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.056302350014448,-0.118413306772709,0.002174898516387,-0.048845790326595,-0.058658350259066,-0.069427423179150,0.067347489297390,0.041774298995733,-0.059439234435558,-0.009898323565722,0.145828396081924,-0.088339246809483,-0.033668089658022,-0.028944974765182,-0.071276247501373,0.036816608160734) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.187583670020103,-0.167460337281227,0.060647141188383,-0.146628856658936,-0.054195020347834,0.040533047169447,0.261503159999847,0.065671257674694,-0.205328240990639,0.014688664115965,0.118006452918053,0.026370454579592,-0.167169749736786,0.050609797239304,-0.088198862969875,0.044125307351351) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.170543044805527,0.048986297100782,-0.032198410481215,0.143225774168968,0.170215919613838,-0.273291885852814,0.074042536318302,-0.063963867723942,0.018963025882840,0.002700292505324,0.247773647308350,-0.102830417454243,-0.298559159040451,0.033598694950342,-0.040013875812292,-0.070419676601887) * MODEL2_texOff(vec2(0,0));
res += mat4(0.009840449318290,-0.137118831276894,0.003860348602757,-0.043103471398354,0.057850927114487,0.093959808349609,0.008629729971290,0.059143885970116,-0.061466563493013,-0.195826426148415,0.135703444480896,0.037348650395870,-0.152355879545212,0.049520481377840,0.069896370172501,0.052375473082066) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.060691498219967,-0.145217046141624,0.071910172700882,-0.078793384134769,-0.000999427167699,0.062962412834167,-0.043470013886690,-0.002742487238720,-0.029069602489471,0.185983762145042,-0.028438117355108,-0.063343644142151,-0.225542157888412,0.091038592159748,-0.144988775253296,0.075427003204823) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.062867604196072,0.008030958473682,0.041436873376369,0.029420062899590,0.040419027209282,0.003516231430694,-0.042705684900284,-0.018444968387485,0.084346577525139,0.034019745886326,0.010404319502413,-0.082620225846767,-0.328432112932205,0.082679152488708,-0.288086473941803,-0.005206556990743) * MODEL2_texOff(vec2(1,0));
res += mat4(0.062977842986584,-0.171430066227913,0.003893321380019,-0.034094948321581,-0.017099283635616,-0.045475210994482,-0.020308168604970,-0.009822078049183,-0.012458520941436,-0.202862069010735,0.047540254890919,0.052451472729445,-0.423884660005569,0.084341302514076,-0.160885110497475,0.034835319966078) * MODEL2_texOff(vec2(1,1));
res += mat4(0.001483900006860,0.041049920022488,0.044644985347986,-0.009310055524111,0.102091662585735,-0.233482271432877,0.039055783301592,0.046142067760229,0.021267997100949,-0.117626771330833,-0.090192638337612,0.036433547735214,0.105501569807529,-0.002099037170410,0.082327686250210,-0.063778452575207) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.127995997667313,0.152220949530602,0.542482197284698,-0.044263616204262,-0.022917337715626,-0.015159009024501,0.110444910824299,0.009537864476442,-0.100323088467121,-0.020911704748869,0.055114950984716,0.067217811942101,0.212812423706055,0.023414105176926,0.157053217291832,-0.042843371629715) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.023558011278510,-0.083019636571407,-0.079631075263023,-0.028491990640759,0.072309471666813,-0.100348956882954,0.062982529401779,-0.066111549735069,-0.319594323635101,-0.124860681593418,-0.197871640324593,0.123667351901531,0.122386284172535,-0.090095609426498,0.196183636784554,-0.086780324578285) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.066392369568348,-0.045486845076084,-0.151968151330948,0.062795311212540,0.043691094964743,-0.351999044418335,0.063380539417267,0.060747742652893,0.024247242137790,-0.028496995568275,-0.012101920321584,0.045134633779526,0.023559892550111,-0.038733486086130,0.198969811201096,0.010417793877423) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.092395558953285,0.012320840731263,0.082151181995869,-0.023493940010667,0.204936966300011,-0.099726364016533,-0.056394372135401,0.082157976925373,-0.044714886695147,-0.085727848112583,0.059540513902903,0.028999134898186,0.222120195627213,0.110356040298939,0.162940159440041,0.102457255125046) * MODEL3_texOff(vec2(0,0));
res += mat4(0.124478965997696,-0.063961021602154,-0.050550870597363,-0.034672267735004,0.198997706174850,-0.217357516288757,0.043882217258215,0.068809747695923,-0.581997871398926,-0.255250364542007,-0.283780843019485,0.099554099142551,0.168126478791237,0.191557303071022,0.185591205954552,0.028415935114026) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.080594263970852,-0.039565429091454,-0.023510631173849,0.049445770680904,0.077340334653854,-0.377230614423752,0.026592761278152,0.076723337173462,-0.098147235810757,0.069201819598675,0.082053102552891,-0.007781047374010,0.181786671280861,0.059127639979124,-0.023205272853374,-0.000685367267579) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.024454344063997,0.093029394745827,-0.023724772036076,-0.071346022188663,-0.018104024231434,-0.095024175941944,0.078514240682125,0.090570792555809,-0.056488294154406,-0.077075026929379,-0.092587806284428,-0.056587379425764,0.358364820480347,0.127469822764397,0.121845096349716,0.031268458813429) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.098773993551731,-0.032307725399733,-0.051648173481226,0.017938887700438,-0.030989978462458,-0.151286751031876,0.138700142502785,0.088258378207684,-0.393187671899796,-0.193296670913696,-0.168161928653717,0.052374038845301,0.244205147027969,0.208004027605057,0.169449552893639,-0.101160869002342) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.117639295756817,0.129134505987167,-0.030584817752242,-0.109186276793480,0.102125257253647,-0.021130342036486,0.058084815740585,-0.056247159838676,-0.031720649451017,-0.008888819254935,-0.099554009735584,0.061551295220852,0.054139837622643,-0.022945776581764,-0.073310747742653,0.053268950432539) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.334865331649780,0.026046900078654,-0.035965133458376,-0.058150101453066,0.008320306427777,-0.288650602102280,0.193605557084084,-0.013056712225080,0.079858101904392,-0.145473942160606,-0.086285717785358,0.000626477994956,0.030786810442805,-0.032088365405798,-0.032212972640991,-0.014791123569012) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.206691235303879,0.270193487405777,-0.098854333162308,-0.044538948684931,-0.011223210953176,-0.117560587823391,0.013177221640944,0.000476414075820,-0.092642076313496,0.077840335667133,-0.059684369713068,-0.000143132550875,0.075215153396130,-0.009937047958374,-0.032196756452322,-0.071170933544636) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.161388695240021,0.111152872443199,0.001324905315414,0.041967589408159,-0.040868692100048,-0.017817273736000,-0.006131171714514,-0.162780657410622,0.100575655698776,0.110883235931396,-0.056008551269770,0.048472758382559,0.043635733425617,-0.036788489669561,-0.021596679463983,-0.003219544421881) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.108540832996368,0.158198267221451,0.221392378211021,-0.092909112572670,-0.131213814020157,-0.013345764949918,-0.083474583923817,-0.024141794070601,-0.012702853418887,-0.062341853976250,0.083451561629772,-0.104158945381641,-0.054538737982512,0.030788205564022,-0.002730965847149,0.062591485679150) * MODEL4_texOff(vec2(0,0));
res += mat4(0.011118152178824,0.062527775764465,-0.070829026401043,0.014059063047171,0.079309195280075,-0.008737131021917,-0.166100919246674,-0.021715980023146,0.117570124566555,0.289994001388550,0.121610388159752,-0.139718472957611,0.062088046222925,-0.029191901907325,0.051274739205837,0.024066494777799) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.018809018656611,0.210170194506645,-0.038423314690590,-0.084354244172573,-0.126219660043716,-0.171832755208015,0.000057521359849,0.076548747718334,0.029412822797894,-0.101661600172520,0.002997381612659,-0.025203291326761,-0.057524163275957,0.058878120034933,-0.108236432075500,0.040554676204920) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.033126819878817,0.356795847415924,0.029791563749313,-0.053786870092154,-0.176242753863335,-0.103004530072212,0.048909500241280,0.017608724534512,-0.166293770074844,-0.118554584681988,-0.059605512768030,-0.109028831124306,-0.037396632134914,0.054627709090710,-0.002736455295235,0.054718889296055) * MODEL4_texOff(vec2(1,0));
res += mat4(0.089826494455338,0.107576161623001,0.015055403113365,-0.030330732464790,-0.083053641021252,-0.081798724830151,0.013455633074045,-0.025835489854217,-0.193249315023422,-0.275747448205948,-0.053758736699820,0.063952609896660,-0.024646842852235,0.039230264723301,-0.032861486077309,-0.004764914512634) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.140729799866676,0.056726574897766,-0.009804742410779,0.033617760986090,-0.006522288080305,-0.101562663912773,-0.013399652205408,-0.040754668414593,-0.042794365435839,-0.028649110347033,0.047331403940916,-0.126644805073738,0.146403744816780,0.116391733288765,-0.128255203366280,0.063985913991928) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.110442809760571,-0.050406865775585,-0.022987285628915,0.050638098269701,0.075760081410408,0.028553234413266,0.043749969452620,-0.011673374101520,0.128954306244850,0.087944805622101,0.088174514472485,0.150926545262337,-0.003241595812142,0.224572628736496,-0.045864898711443,0.064522430300713) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.062653608620167,-0.018842834979296,0.012585207819939,-0.007095124106854,0.095374099910259,-0.005548658315092,0.063042931258678,-0.039834417402744,-0.062899976968765,-0.036175139248371,-0.113658607006073,0.099379539489746,-0.161382600665092,0.001647433266044,-0.221675425767899,-0.013394117355347) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.007301873061806,0.181861728429794,0.123981878161430,-0.060412585735321,0.066636994481087,-0.147213622927666,-0.017262039706111,0.065372444689274,-0.017536224797368,-0.015908975154161,-0.131485760211945,0.109420262277126,-0.084987342357635,0.017600152641535,-0.051693379878998,0.066944263875484) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.059085302054882,0.272091150283813,0.092774242162704,-0.030365176498890,0.156085565686226,-0.135566204786301,-0.007798606529832,0.092868186533451,0.091693177819252,-0.159489288926125,-0.262450933456421,-0.133582845330238,-0.024082992225885,-0.116809785366058,0.211560666561127,-0.036060914397240) * MODEL5_texOff(vec2(0,0));
res += mat4(0.006852029822767,-0.045642729848623,0.097678758203983,-0.012335704639554,0.060972798615694,-0.135444268584251,-0.032482497394085,0.070679083466530,0.027714708819985,-0.055812377482653,-0.101112321019173,0.018997903913260,-0.353612571954727,-0.019302479922771,-0.276412308216095,0.017590308561921) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.149101510643959,0.180446326732635,0.127210080623627,0.002091763773933,0.046966359019279,-0.108487114310265,-0.006311221513897,-0.000289040239295,0.105737410485744,-0.062169149518013,-0.039063647389412,-0.023092847317457,-0.057861041277647,-0.049874491989613,-0.061172503978014,-0.003547430038452) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.057489771395922,-0.117124795913696,0.032039817422628,0.051088050007820,-0.041454400867224,-0.042851049453020,-0.011505075730383,0.085998982191086,0.115881219506264,0.062142387032509,-0.100485868752003,0.112803801894188,-0.086993187665939,0.005604186095297,0.013738577254117,-0.005449721589684) * MODEL5_texOff(vec2(1,0));
res += mat4(0.003244322957471,-0.151871070265770,0.064167968928814,0.028878618031740,0.198763653635979,0.059520084410906,-0.083223782479763,0.051005955785513,-0.044177390635014,0.075947098433971,-0.117108613252640,0.014414626173675,-0.032764382660389,0.022637842223048,-0.082669883966446,-0.003511318471283) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.192794054746628,0.152451813220978,-0.046529784798622,-0.111612953245640,-0.146914079785347,0.055917602032423,-0.016042288392782,0.067457154393196,0.010245617479086,-0.043251719325781,-0.021020991727710,-0.021883245557547,-0.095823258161545,0.095507301390171,-0.005882220808417,-0.145868286490440) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.163306772708893,-0.023813456296921,-0.019083427265286,-0.075445018708706,-0.087337881326675,-0.080802015960217,-0.120050489902496,0.088192515075207,0.064562067389488,0.050258114933968,0.047797948122025,0.005959599278867,0.026732208207250,0.055439002811909,-0.092726953327656,-0.119128942489624) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.000177792899194,0.030796481296420,-0.041353095322847,-0.052901413291693,-0.093911297619343,0.077622756361961,0.071517102420330,0.149690747261047,0.112161241471767,-0.015458477661014,0.053405251353979,0.095275804400444,0.074062809348106,0.016848161816597,-0.012573367916048,-0.134470045566559) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.080575391650200,0.109931573271751,0.029164809733629,-0.151088997721672,-0.075189031660557,0.020665399730206,-0.030829496681690,-0.068069256842136,0.099053904414177,-0.059133831411600,0.072533912956715,0.017048221081495,0.038118883967400,0.229205757379532,-0.003736243816093,-0.051659502089024) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.174305632710457,-0.026135830208659,-0.110397666692734,-0.097252659499645,-0.023389497771859,-0.025664826855063,-0.056243922561407,-0.121638603508472,0.084548905491829,-0.103775940835476,-0.014858269132674,-0.159693002700806,0.188353300094604,0.163095280528069,-0.094516977667809,-0.096343807876110) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.144895941019058,0.096785269677639,0.035425830632448,-0.023944983258843,-0.180951982736588,0.056596670299768,0.023169940337539,0.076162822544575,-0.005910425446928,-0.127449557185173,-0.100673608481884,0.017325786873698,0.037510510534048,0.205337792634964,0.042286571115255,-0.038232631981373) * MODEL6_texOff(vec2(0,1));
res += mat4(0.053685817867517,0.074641369283199,0.144335463643074,-0.068552985787392,-0.068388804793358,0.056989084929228,-0.153658583760262,0.043611705303192,-0.024051491171122,-0.029444608837366,-0.022022608667612,-0.003771011717618,0.002528537996113,0.110723130404949,0.097510278224945,-0.116991609334946) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.083427898585796,0.091581240296364,0.018859950825572,-0.076757185161114,-0.108480080962181,-0.060581803321838,0.003260925645009,0.069110229611397,-0.033489588648081,0.097608000040054,0.053343530744314,0.014199788682163,0.068264134228230,0.161356136202812,0.042018797248602,-0.054788645356894) * MODEL6_texOff(vec2(1,0));
res += mat4(0.028613487258554,0.007654767017812,-0.050735820084810,0.039539061486721,-0.194142147898674,0.039985999464989,0.016639219596982,0.090218186378479,-0.178257733583450,0.167279988527298,0.024832211434841,0.000217855442315,0.012684641405940,0.092027775943279,-0.016873000189662,-0.057274516671896) * MODEL6_texOff(vec2(1,1));
res += FEATURE5_texOff(0);
res = max(res, vec4(0.0)) + vec4(0.356077760457993,0.382196694612503,-0.018105348572135,0.917956948280334) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!BIND FEATURE6
//!SAVE MODEL12
//!DESC [AiUpscale_HQ_3x_Photo] mapping 4_6

vec4 hook()
{
vec4 res = vec4(0.028252029791474,-0.083831839263439,-0.134638622403145,0.080139137804508);
res += mat4(-0.050761274993420,0.120138444006443,0.002808648860082,-0.017135968431830,0.253179490566254,0.021765787154436,-0.156219735741615,0.281080633401871,0.027720017358661,0.122677423059940,0.021624997258186,0.000219201465370,-0.035313136875629,-0.044059429317713,0.085268437862396,-0.022854827344418) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.003250391455367,-0.008274740539491,0.022548910230398,-0.160013899207115,0.374906778335571,0.023087935522199,0.075274147093296,0.292471766471863,0.059873685240746,0.022172706201673,-0.062619239091873,-0.113405570387840,-0.141114816069603,-0.086878910660744,0.014065609313548,-0.031088085845113) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.086027719080448,-0.007469256408513,-0.212048724293709,-0.041143853217363,0.013938463293016,0.153825655579567,-0.150971487164497,0.055138722062111,-0.112489312887192,0.063435256481171,-0.091514810919762,-0.056725747883320,-0.034922819584608,-0.082001529633999,-0.007180934306234,0.081393465399742) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.101645961403847,-0.023819694295526,0.105432920157909,-0.067941114306450,0.006429797969759,0.089859567582607,0.149510025978088,0.029229372739792,0.163946717977524,0.254636108875275,0.112767256796360,-0.173956438899040,-0.049972798675299,-0.027798967435956,-0.054497044533491,0.121764324605465) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.075201101601124,-0.141869977116585,0.026144122704864,-0.116742454469204,0.143528550863266,0.069372393190861,0.018393537029624,0.064546912908554,-0.079125247895718,-0.086535282433033,-0.123725011944771,-0.145342543721199,-0.083491571247578,-0.022156899794936,-0.003016174072400,-0.014963679015636) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.050048153847456,-0.048946842551231,-0.085071712732315,0.011737791821361,0.028528785333037,0.178808808326721,0.111330546438694,0.077244661748409,-0.048162352293730,0.049197413027287,-0.094852365553379,-0.016397481784225,-0.084605470299721,-0.101774021983147,-0.123883478343487,0.068981707096100) * MODEL1_texOff(vec2(0,1));
res += mat4(0.043181087821722,-0.063561826944351,0.105607300996780,-0.013139148242772,-0.131381630897522,-0.008259696885943,0.007312377449125,0.100861705839634,0.034429505467415,0.055362675338984,-0.132387340068817,0.166681617498398,-0.097292907536030,0.109826035797596,-0.075882539153099,0.020857332274318) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.041173614561558,-0.159317225217819,0.046259637922049,0.026922350749373,0.136578693985939,0.020050821825862,0.002171587897465,0.256207913160324,-0.025415372103453,-0.177662357687950,-0.088021375238895,0.003484030719846,0.110421970486641,-0.084637932479382,-0.129718378186226,0.045767255127430) * MODEL1_texOff(vec2(1,0));
res += mat4(0.082777678966522,-0.189801082015038,0.179344609379768,-0.011458465829492,0.011129316873848,-0.056267421692610,0.037230446934700,0.031648043543100,-0.114483594894409,-0.120888896286488,-0.061035748571157,-0.099717922508717,0.028772816061974,0.024198507890105,-0.099919766187668,0.039779800921679) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.300281673669815,0.048847690224648,0.048381950706244,-0.001703005866148,-0.257227212190628,-0.048085387796164,-0.159889012575150,0.106903672218323,-0.105134800076485,0.037216152995825,0.114696606993675,-0.073029622435570,0.088599242269993,-0.045972481369972,-0.070187181234360,-0.019048118963838) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.261588305234909,0.071127712726593,-0.128665164113045,0.045848108828068,-0.688924193382263,0.040080763399601,-0.140663146972656,-0.200204700231552,-0.339558392763138,0.098603710532188,0.332717001438141,-0.068267174065113,0.058432597666979,0.023796554654837,-0.146688923239708,0.002592833014205) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.009717333130538,0.110336042940617,-0.033307932317257,0.051565822213888,-0.176478207111359,-0.007290040142834,-0.057368766516447,0.068903140723705,-0.123715758323669,0.091329090297222,-0.046953938901424,0.138206496834755,-0.003293350804597,-0.060148015618324,-0.193018287420273,-0.095051303505898) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.195565313100815,0.140451550483704,0.123231142759323,-0.252478271722794,-0.120526574552059,-0.155867561697960,-0.051414661109447,-0.093681626021862,-0.132223889231682,0.092808566987514,-0.011435612104833,-0.028244942426682,-0.037865925580263,-0.026600886136293,-0.065264977514744,0.003710078075528) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.185124486684799,0.124312452971935,0.062349956482649,-0.018963893875480,0.304459303617477,-0.084661759436131,0.431135892868042,0.035169687122107,-0.153427422046661,0.205052375793457,0.368410825729370,-0.083134084939957,-0.073897667229176,0.013500534929335,0.082011982798576,-0.075718417763710) * MODEL2_texOff(vec2(0,0));
res += mat4(0.017604557797313,0.069756872951984,0.095212981104851,0.040845561772585,0.003917117603123,0.002020819112659,0.107687599956989,-0.036354359239340,-0.017087196931243,-0.031343769282103,-0.205834895372391,0.107634119689465,-0.033622018992901,-0.107611291110516,-0.225482150912285,-0.440838247537613) * MODEL2_texOff(vec2(0,1));
res += mat4(0.027128959074616,0.035619292408228,-0.097158983349800,-0.108353242278099,-0.015663631260395,-0.090492986142635,0.211134806275368,-0.026749597862363,-0.061883773654699,0.104075558483601,0.106012590229511,-0.048520181328058,0.033655211329460,0.017720982432365,0.029501480981708,-0.132897526025772) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.030891679227352,0.110392905771732,-0.005323734600097,0.064007826149464,0.114429347217083,0.007391250226647,0.036083027720451,0.079529218375683,-0.017473768442869,0.061821430921555,-0.033641844987869,0.053798388689756,0.119644112884998,0.047088097780943,0.012981991283596,-0.078862316906452) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.002117614028975,0.080786809325218,0.057004023343325,0.045719418674707,0.129435718059540,-0.007375953253359,0.040629312396049,0.078562058508396,-0.091627292335033,-0.060167398303747,-0.002343159634620,0.056572519242764,0.036949686706066,-0.015944486483932,-0.254415035247803,0.016013136133552) * MODEL2_texOff(vec2(1,1));
res += mat4(0.019655922427773,-0.013102222234011,0.015478776767850,0.126050606369972,0.005965325050056,0.025641314685345,0.027688562870026,0.079404376447201,0.090223729610443,0.001465738867410,-0.015838431194425,0.072910338640213,-0.024076823145151,0.187463968992233,-0.021277070045471,0.055008728057146) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.060600943863392,-0.117228291928768,0.000727778649889,-0.023823603987694,0.019097199663520,-0.221253380179405,0.244915112853050,-0.024645118042827,0.169548094272614,-0.033971134573221,-0.086318396031857,-0.110923074185848,0.190865367650986,0.052215468138456,-0.023311709985137,0.177633628249168) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.042583219707012,-0.000587525777519,-0.011248406954110,-0.050203628838062,-0.076146595180035,-0.094686552882195,0.133942291140556,0.136797994375229,0.102264322340488,-0.055285591632128,-0.007042992394418,-0.105277530848980,0.035463381558657,0.020026709884405,-0.048434603959322,0.038611941039562) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.023939350619912,-0.028113901615143,-0.048406049609184,0.076332777738571,0.087151683866978,-0.032565280795097,-0.049383338540792,0.068489119410515,-0.004107985179871,0.011010933667421,-0.091331765055656,-0.052119828760624,0.088776268064976,0.195934012532234,0.153882801532745,-0.119789905846119) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.007327561732382,0.091475352644920,0.020078394562006,0.142368122935295,-0.066018454730511,-0.064373344182968,0.097230263054371,0.154941707849503,-0.091817252337933,-0.139018744230270,0.012931221164763,-0.321862012147903,0.095604963600636,-0.057587120682001,-0.067243501543999,-0.014720222912729) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.014730758965015,0.030271708965302,-0.007395210675895,0.070768386125565,0.087836392223835,-0.109143607318401,-0.130773976445198,-0.080976039171219,-0.022491352632642,0.000833653321024,-0.068118855357170,-0.027804786339402,0.152721807360649,-0.049687873572111,-0.043276023119688,-0.073157347738743) * MODEL3_texOff(vec2(0,1));
res += mat4(0.028545901179314,-0.074367970228195,-0.002508113393560,-0.043900415301323,0.072750277817249,0.169518247246742,0.154262319207191,-0.071789123117924,0.025548301637173,-0.092304401099682,-0.055409967899323,-0.024713451042771,0.035533148795366,-0.025758424773812,0.112602628767490,0.023372028023005) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.008289833553135,0.014783100225031,-0.020642872899771,-0.071355707943439,0.115820549428463,-0.097772486507893,0.031714394688606,-0.090722747147083,0.023759713396430,0.096618391573429,0.030915075913072,-0.018424361944199,0.025140998885036,-0.046724151819944,0.193243965506554,-0.019833432510495) * MODEL3_texOff(vec2(1,0));
res += mat4(0.083544917404652,-0.013698386028409,-0.109939016401768,-0.055559925734997,0.148368209600449,-0.165841400623322,0.040237329900265,0.123163871467113,0.130966722965240,-0.021222850307822,-0.066801033914089,0.036986816674471,0.044882502406836,-0.055283501744270,0.085074223577976,0.008480251766741) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.050704419612885,0.129391044378281,-0.057612359523773,0.209837049245834,0.087320260703564,-0.036442585289478,0.094975627958775,0.033296778798103,0.021972572430968,-0.018783504143357,-0.035356815904379,0.079762212932110,-0.132133781909943,-0.010434082709253,-0.172467097640038,-0.087919317185879) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.036212868988514,0.037204805761576,0.181907743215561,-0.040384866297245,-0.044872686266899,-0.126433596014977,0.038811095058918,0.031165588647127,0.144910439848900,0.040876217186451,0.038146007806063,0.158874392509460,-0.246729329228401,-0.029009323567152,0.332970440387726,0.046853050589561) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.247108370065689,0.147432610392570,-0.175777703523636,-0.032315481454134,0.045801475644112,-0.022164003923535,0.183374598622322,0.043006457388401,0.135916605591774,0.029502816498280,-0.027376180514693,0.091853976249695,-0.106884106993675,0.032417532056570,-0.190915688872337,0.049798183143139) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.020489105954766,0.136180385947227,0.032896131277084,-0.050958748906851,-0.023140573874116,0.005916425026953,0.027933483943343,-0.096965432167053,0.086087107658386,-0.143528386950493,0.042705696076155,-0.198143407702446,-0.012942299246788,-0.095450557768345,-0.093544013798237,-0.044620446860790) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.158874973654747,0.240159347653389,-0.180787980556488,0.115311354398727,0.024209421128035,0.032140802592039,0.151769816875458,0.102647326886654,-0.084706887602806,0.040741533041000,-0.051381923258305,-0.018469313159585,-0.065180994570255,-0.073601908981800,0.079055532813072,-0.116228051483631) * MODEL4_texOff(vec2(0,0));
res += mat4(0.009606863372028,0.138407185673714,-0.044962257146835,0.001178519101813,0.078520111739635,-0.013362693600357,-0.077262982726097,-0.026125852018595,-0.017900427803397,0.008484002202749,-0.058875482529402,-0.079979427158833,0.060519527643919,-0.170119807124138,-0.096502795815468,0.044516213238239) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.029912322759628,-0.011675758287311,0.116769172251225,0.132276251912117,0.046698115766048,0.218023493885994,0.106018446385860,-0.199819147586823,-0.088356576859951,-0.043921943753958,-0.099741838872433,-0.090998999774456,0.023987315595150,0.087761022150517,0.064125515520573,0.011045657098293) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.057803895324469,0.035678792744875,-0.105996809899807,0.112568795681000,0.102309204638004,-0.013466700911522,0.038401525467634,-0.082651898264885,-0.023885184898973,0.132046431303024,-0.085698112845421,0.055129971355200,0.160020425915718,0.010631868615746,0.088184565305710,-0.050897501409054) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.005558503791690,0.129925295710564,-0.002243481576443,-0.011659821495414,0.004804801195860,0.007896806113422,0.050899598747492,0.048984389752150,-0.164574459195137,-0.025012766942382,-0.165906682610512,-0.023933367803693,0.054092895239592,-0.133242040872574,0.110301375389099,0.041242476552725) * MODEL4_texOff(vec2(1,1));
res += mat4(0.036549743264914,0.110053107142448,-0.047004956752062,0.022165490314364,-0.020379735156894,0.067317880690098,-0.040240447968245,-0.021018614992499,0.129668667912483,0.166703701019287,-0.113400235772133,-0.013065974228084,0.075264714658260,-0.046078242361546,-0.072253286838531,-0.003511212300509) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.047078970819712,0.008039161562920,-0.140287235379219,0.062416072934866,0.100294128060341,-0.052717819809914,0.000882010383066,-0.032749354839325,-0.171189516782761,0.099805310368538,-0.180860593914986,-0.153879329562187,-0.082228817045689,0.069616436958313,-0.139618188142776,0.235546797513962) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.030659459531307,0.054338209331036,0.020958553999662,0.054947182536125,0.011495124548674,-0.026739370077848,-0.163945302367210,0.063538812100887,0.118752516806126,-0.087766498327255,0.100362285971642,0.041006360203028,0.001810060231946,0.099461488425732,0.059449221938848,-0.084856502711773) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.344606935977936,0.191057890653610,-0.054691616445780,-0.058846697211266,0.028097800910473,0.002041068626568,0.082044295966625,0.067551754415035,0.082153044641018,0.136309042572975,-0.111346378922462,0.081354945898056,-0.006127014290541,-0.061574701219797,0.002416018163785,0.032276198267937) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.016432389616966,0.130862757563591,0.079545564949512,0.104130797088146,-0.080728702247143,-0.139932423830032,0.102543711662292,-0.004731868393719,0.022368652746081,-0.140142738819122,-0.211477249860764,-0.027402684092522,0.002825746079907,-0.065866187214851,-0.147004947066307,0.070078618824482) * MODEL5_texOff(vec2(0,0));
res += mat4(0.179379776120186,0.003535422729328,0.037098851054907,0.021172231063247,-0.032659724354744,-0.112369082868099,0.098036445677280,-0.027086338028312,0.078470706939697,-0.063928388059139,0.044725328683853,0.066892266273499,0.034400973469019,0.107319526374340,0.045096602290869,0.037218786776066) * MODEL5_texOff(vec2(0,1));
res += mat4(0.115774460136890,0.067688323557377,0.064801655709743,-0.011127016507089,-0.001397545100190,-0.076210811734200,0.060289453715086,-0.105676405131817,0.057448070496321,-0.057328522205353,-0.175034344196320,0.024108398705721,-0.075810424983501,-0.048289407044649,-0.070215262472630,0.021658780053258) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.061194557696581,-0.114657275378704,-0.286132276058197,-0.069795548915863,0.107818663120270,0.053423516452312,0.157408103346825,0.006566148716956,0.115023419260979,-0.002379128476605,-0.101035661995411,0.015578628517687,-0.055760949850082,0.066373609006405,0.027551207691431,-0.002774937776849) * MODEL5_texOff(vec2(1,0));
res += mat4(0.033313717693090,-0.011398515664041,-0.035565637052059,0.051692500710487,0.116969965398312,0.063381582498550,0.120235875248909,-0.031831469386816,0.095821127295494,0.084090270102024,0.000144520367030,-0.030850134789944,0.019464481621981,0.055818241089582,-0.123802244663239,-0.122477620840073) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.080065891146660,0.090395189821720,0.124992467463017,-0.065914392471313,0.107462897896767,-0.016853621229529,0.052949629724026,-0.075202621519566,-0.019886925816536,0.008467705920339,-0.119585879147053,-0.147166877985001,-0.121313683688641,-0.087594024837017,0.132120698690414,-0.082866653800011) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.036805607378483,-0.049863718450069,0.062767677009106,0.163542792201042,0.150783181190491,-0.033008184283972,0.087971188127995,-0.069313444197178,-0.125165820121765,0.104668207466602,0.157558992505074,-0.761210143566132,-0.224654465913773,0.088602550327778,0.134818315505981,0.041034303605556) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.034691564738750,0.093564264476299,-0.061376951634884,0.024867897853255,0.174165368080139,-0.055216327309608,0.111376024782658,-0.036628555506468,0.107392415404320,-0.098583206534386,-0.327583909034729,0.039204031229019,-0.137315526604652,0.224088519811630,0.001548365107737,-0.081246994435787) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.096183300018311,-0.080035001039505,-0.025832697749138,0.205702766776085,0.110817059874535,0.063316226005554,0.009444581344724,0.092730678617954,0.009782113134861,-0.037336427718401,0.008862259797752,0.059052482247353,-0.095459342002869,0.034263845533133,0.033543534576893,-0.143837839365005) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.111412853002548,0.125792592763901,0.014888364821672,0.043657708913088,0.128829240798950,0.184248551726341,0.042210899293423,0.058597017079592,-0.139339134097099,-0.065685003995895,-0.104223318397999,0.080854721367359,-0.172349661588669,0.111901007592678,-0.018876269459724,-0.070441983640194) * MODEL6_texOff(vec2(0,0));
res += mat4(0.079350583255291,-0.041190151125193,-0.075084939599037,0.063877880573273,0.097535029053688,0.099140971899033,0.114998757839203,0.029195349663496,-0.127095267176628,-0.002501656999812,-0.272906839847565,0.005499470513314,-0.220566451549530,0.020956017076969,0.139308154582977,0.067699879407883) * MODEL6_texOff(vec2(0,1));
res += mat4(0.003506547072902,0.152451172471046,-0.117472432553768,0.134607851505280,0.006417920812964,0.129663750529289,-0.192879721522331,-0.012301015667617,0.014939291402698,0.149001330137253,0.031595431268215,-0.045547798275948,0.064524173736572,-0.028893690556288,0.101272188127041,-0.009700386784971) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.168208390474319,0.102035298943520,0.056596834212542,-0.304083198308945,-0.009545511566103,0.197499677538872,0.014259183779359,0.015134760178626,-0.090967230498791,-0.099216781556606,0.040602318942547,0.063944898545742,0.027031449601054,-0.045880064368248,-0.005420806352049,-0.021221300587058) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.134098157286644,0.115272469818592,-0.232062131166458,0.010155824013054,-0.043680064380169,0.044112220406532,0.059765465557575,-0.051907852292061,-0.062298439443111,-0.016486966982484,-0.104281380772591,0.134094864130020,-0.155698001384735,0.136564522981644,0.024431183934212,-0.095324113965034) * MODEL6_texOff(vec2(1,1));
res += FEATURE6_texOff(0);
res = max(res, vec4(0.0)) + vec4(-0.025895709171891,0.620068728923798,0.107549853622913,0.030510893091559) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL1
//!DESC [AiUpscale_HQ_3x_Photo] mapping 5_1

vec4 hook()
{
vec4 res = vec4(-0.270543128252029,-0.093108996748924,-0.004335644189268,-0.322536021471024);
res += mat4(-0.012707612477243,-0.020566927269101,0.102676160633564,0.119729042053223,0.039479713886976,-0.053878389298916,0.066857784986496,-0.105349980294704,0.034740503877401,-0.069059103727341,-0.003255748655647,0.094679720699787,0.049849744886160,-0.026156678795815,-0.101159989833832,-0.052894499152899) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.130547240376472,-0.160475954413414,0.202161446213722,0.071000769734383,-0.041031479835510,0.005872149486095,0.012671695090830,0.028393507003784,0.091765969991684,0.048726357519627,-0.218650877475739,-0.063168376684189,-0.034084450453520,-0.119169011712074,-0.222519159317017,-0.140173241496086) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.014932308346033,-0.100528858602047,0.140043899416924,-0.040192369371653,0.046879306435585,-0.112365074455738,-0.075726605951786,0.077864237129688,0.208104819059372,-0.005143729038537,0.021713033318520,-0.059450324624777,-0.008203242905438,0.015194850042462,-0.146752670407295,-0.027804521843791) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.302057296037674,-0.046077564358711,-0.076504334807396,0.135129228234291,-0.112075783312321,-0.040178630501032,0.049522887915373,0.155566021800041,-0.014299548231065,-0.094806775450706,-0.038630750030279,0.082119099795818,0.230661094188690,-0.092842273414135,-0.068778455257416,0.051488425582647) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.167213246226311,-0.027647769078612,-0.230967089533806,0.338795065879822,-0.143244698643684,0.233450189232826,-0.093753576278687,0.057736698538065,0.024430617690086,0.139524593949318,0.279770344495773,0.129218116402626,0.124160103499889,-0.183394461870193,-0.055700998753309,-0.081091232597828) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.164491221308708,-0.352387905120850,-0.138766214251518,0.039483334869146,-0.059717822819948,-0.098515279591084,-0.107835732400417,0.117419958114624,0.064503014087677,0.021636273711920,-0.121677063405514,-0.129757374525070,0.141970500349998,-0.032405000180006,-0.065056219696999,-0.095021948218346) * MODEL7_texOff(vec2(0,1));
res += mat4(0.077610313892365,-0.115821674466133,0.004284397698939,0.051766563206911,0.134933516383171,0.019483186304569,-0.044782649725676,0.138660982251167,0.057591099292040,-0.124506555497646,0.091430500149727,0.061196539551020,0.233788937330246,0.070452444255352,0.002806474221870,0.036191646009684) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.028647908940911,0.004167614504695,-0.080959126353264,-0.160132899880409,0.130121693015099,0.061484038829803,0.024397572502494,-0.077861875295639,-0.081387497484684,-0.164906173944473,0.040621269494295,0.232154116034508,0.137823700904846,0.149527683854103,0.153768613934517,-0.175849497318268) * MODEL7_texOff(vec2(1,0));
res += mat4(0.024295054376125,0.021143494173884,-0.031814783811569,-0.101508736610413,0.155657991766930,0.056533362716436,0.052784569561481,-0.079972699284554,0.003725008573383,0.164488911628723,0.114182047545910,0.049048345535994,0.007136423606426,-0.165348157286644,-0.030105544254184,-0.059524521231651) * MODEL7_texOff(vec2(1,1));
res += mat4(0.064612820744514,0.062865935266018,0.003527894848958,0.094456776976585,0.138172388076782,-0.037576872855425,0.060566037893295,0.120110690593719,-0.051074694842100,-0.000804476265330,-0.059309408068657,0.065657056868076,-0.040275886654854,-0.175664797425270,-0.039881680160761,-0.112647242844105) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.141181170940399,-0.015054590068758,-0.060334339737892,0.129612475633621,0.121395334601402,-0.142999395728111,-0.020673228427768,0.157365903258324,0.039871796965599,-0.087320707738400,-0.225103154778481,-0.126888841390610,-0.018482888117433,0.004678358789533,0.056438401341438,-0.072855390608311) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.141310840845108,0.060343664139509,0.009800027124584,0.043629534542561,0.032370116561651,-0.074283517897129,-0.011017645709217,0.129233300685883,0.035411223769188,-0.081784918904305,-0.101090610027313,0.098305426537991,-0.100725241005421,-0.038128200918436,-0.000403338432079,-0.038244061172009) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.192022383213043,0.093607254326344,-0.073526911437511,0.007141204085201,0.220217958092690,0.069628290832043,0.029912862926722,0.037921991199255,0.381631463766098,0.018876777961850,0.039061389863491,0.166760891675949,-0.196815460920334,-0.210131153464317,0.083360470831394,-0.010130781680346) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.055495616048574,-0.073311515152454,-0.091847091913223,0.071315854787827,-0.120681837201118,-0.075188197195530,-0.014333028346300,-0.236235007643700,0.203366070985794,-0.426621347665787,0.138228863477707,-0.151862084865570,0.118923276662827,0.041689604520798,-0.038665942847729,-0.005037903320044) * MODEL8_texOff(vec2(0,0));
res += mat4(0.134729638695717,-0.100093945860863,-0.027770370244980,-0.015964960679412,0.122900150716305,-0.129736751317978,0.089059986174107,-0.043469406664371,0.063604272902012,0.069483712315559,0.203185811638832,0.106773510575294,0.057116158306599,-0.037522584199905,0.026985395699739,-0.238316744565964) * MODEL8_texOff(vec2(0,1));
res += mat4(0.028832735493779,-0.009697052650154,0.052846349775791,-0.073956549167633,0.032300464808941,0.119405597448349,0.009384769015014,0.167598530650139,-0.214150175452232,0.045266363769770,0.059347152709961,-0.014929513446987,0.023450577631593,-0.005540919490159,-0.089995518326759,0.004847575910389) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.237453028559685,-0.014882207848132,0.046633072197437,-0.132348433136940,-0.138788923621178,0.143913179636002,0.012528011575341,-0.002605444984511,-0.104427412152290,0.048808589577675,0.114024713635445,-0.047104306519032,0.069534152746201,0.109268017113209,-0.033217292279005,-0.068224936723709) * MODEL8_texOff(vec2(1,0));
res += mat4(0.217911362648010,0.052403941750526,-0.037661060690880,0.029173895716667,0.068718157708645,-0.060203485190868,0.064916014671326,0.060270421206951,0.004238389432430,-0.103318192064762,-0.077928222715855,0.071355663239956,0.008350245654583,0.062764808535576,-0.008989660069346,0.006254661362618) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.064229756593704,0.043491564691067,-0.034820631146431,0.235963150858879,0.086989082396030,0.083096340298653,0.041071042418480,0.050408769398928,0.353919416666031,0.003064443590119,-0.132856920361519,0.100651703774929,0.000562264118344,0.065726891160011,0.132602185010910,0.056616332381964) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.089892849326134,-0.132066264748573,-0.004573146812618,-0.104759775102139,0.018257474526763,-0.046402126550674,-0.001934615778737,-0.067727357149124,-0.157575801014900,-0.091467842459679,0.047687664628029,0.181257501244545,0.078477047383785,0.015301268547773,-0.018936963751912,0.051905795931816) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.010438047349453,0.074447587132454,-0.026800744235516,-0.042466498911381,-0.004223396070302,-0.143065720796585,0.126694381237030,-0.131416410207748,-0.146242633461952,-0.161833107471466,-0.102914385497570,0.028883378952742,0.081872567534447,0.117604233324528,0.054408900439739,-0.156083434820175) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.234454169869423,0.020519698038697,0.060062412172556,0.026347042992711,0.181557700037956,0.062451597303152,-0.029914328828454,-0.059153858572245,0.039924774318933,0.013101377524436,0.032865438610315,-0.042093824595213,-0.018774043768644,-0.045483052730560,-0.044071998447180,0.124463602900505) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.017840521410108,-0.331480890512466,0.071018546819687,-0.110335476696491,0.105944857001305,0.056681327521801,0.032668307423592,0.058149084448814,-0.017352811992168,-0.152268007397652,0.105934813618660,-0.016692532226443,0.018354399129748,-0.256786614656448,0.121799498796463,0.029489224776626) * MODEL9_texOff(vec2(0,0));
res += mat4(0.066677629947662,0.045666161924601,0.031255465000868,-0.003385848598555,0.069783531129360,-0.202850669622421,-0.004152750596404,0.128059491515160,-0.111075341701508,0.056402798742056,0.036890439689159,-0.064294554293156,0.037755791097879,-0.041563834995031,0.033071659505367,-0.056638121604919) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.054221987724304,0.042442567646503,-0.028477856889367,-0.204623073339462,0.033052451908588,-0.008722018450499,0.003253038972616,0.070563010871410,0.062029786407948,0.005415615160018,-0.051587119698524,0.010714104399085,-0.117628857493401,0.085417449474335,0.039632529020309,0.068603023886681) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.102693341672421,-0.130341961979866,-0.051468253135681,-0.081685341894627,0.190283194184303,0.102678835391998,0.044724479317665,0.017633885145187,-0.041980899870396,-0.038361348211765,-0.091420471668243,0.056577432900667,-0.160396248102188,0.128639876842499,-0.073638103902340,0.054707787930965) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.049656834453344,-0.026752633973956,-0.037893984466791,0.008659569546580,-0.117077268660069,-0.096961684525013,0.016369827091694,-0.062519833445549,-0.003220447339118,-0.069363966584206,0.066459290683270,0.084277994930744,-0.013387107290328,0.126897498965263,-0.089087836444378,0.049393579363823) * MODEL9_texOff(vec2(1,1));
res += mat4(0.042616546154022,-0.059145428240299,0.010135669261217,0.006970737129450,0.044423267245293,0.074504815042019,0.060955114662647,-0.074962429702282,-0.140216097235680,-0.032833721488714,0.027692236006260,-0.070462509989738,-0.036857593804598,-0.112215258181095,0.031703229993582,-0.093423411250114) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.118281237781048,0.017296904698014,0.024092240259051,0.104573287069798,-0.042389314621687,0.005521208979189,0.018193012103438,0.214750349521637,0.111879520118237,0.019418999552727,0.051099661737680,0.079378746449947,0.009722909890115,0.136719509959221,-0.458230972290039,-0.121912434697151) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.014030448161066,0.032435007393360,0.114715434610844,0.123199738562107,0.095334559679031,-0.090336062014103,-0.083757616579533,-0.120799779891968,0.041015237569809,0.030802920460701,-0.020941421389580,0.073752477765083,-0.187085047364235,-0.030792232602835,-0.007107592653483,0.080225981771946) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.202742919325829,-0.058865174651146,-0.012738889083266,-0.107317514717579,-0.193234115839005,-0.028190754354000,-0.163631677627563,-0.089256145060062,0.091613389551640,-0.026214545592666,0.012690936215222,0.037073504179716,0.162644028663635,-0.050680819898844,0.006648342125118,-0.059816740453243) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.008119576610625,0.150546953082085,0.062986589968204,0.033626388758421,-0.090298704802990,0.457458198070526,-0.495885819196701,0.303716748952866,0.189839616417885,-0.024351341649890,0.106361590325832,0.174911767244339,0.003264454193413,0.080155164003372,-0.184014946222305,-0.118192926049232) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.041265696287155,0.066938266158104,0.044210918247700,-0.075125806033611,0.099536947906017,-0.341976553201675,-0.060063414275646,0.046553518623114,0.191745340824127,0.113866291940212,-0.048435397446156,0.163944244384766,-0.049507729709148,-0.076636150479317,-0.051485944539309,-0.005640302319080) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.174707680940628,0.011214604601264,-0.028459578752518,0.048876807093620,0.077959790825844,-0.199782177805901,0.073070809245110,-0.095097988843918,0.022824306041002,-0.000752400141209,-0.033185418695211,-0.016111159697175,0.094161354005337,-0.031510166823864,0.033732201904058,0.136603817343712) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.096584171056747,-0.046764343976974,-0.033534359186888,0.105717197060585,0.168658360838890,-0.066403813660145,0.198396787047386,-0.220559462904930,0.069708839058876,-0.146352201700211,-0.069574005901814,-0.153905451297760,-0.047446895390749,0.052296705543995,-0.009084244258702,0.003146043745801) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.116312064230442,0.075594231486320,-0.027600089088082,0.137920558452606,0.144740879535675,-0.137977853417397,0.084892407059669,-0.121944345533848,0.069335162639618,-0.067959606647491,0.036026272922754,-0.040882788598537,-0.061581071466208,0.037311371415854,-0.035348787903786,-0.034203950315714) * MODEL10_texOff(vec2(1,1));
res += mat4(0.185694187879562,-0.097027078270912,0.070886150002480,0.028128957375884,-0.058277714997530,-0.080146573483944,0.115346089005470,0.038236115127802,0.052842292934656,0.005954743362963,-0.039822299033403,-0.024442054331303,-0.093078449368477,0.029712226241827,0.276506751775742,-0.158431470394135) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.006868150085211,0.017056485638022,0.014157949015498,-0.108386874198914,-0.021825367584825,0.177785575389862,0.132601201534271,-0.045933324843645,-0.019668851047754,-0.174773171544075,0.051844451576471,0.227021083235741,-0.048022869974375,-0.124408833682537,0.575349450111389,0.307667732238770) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.045648161321878,0.043559215962887,0.099334232509136,0.037467118352652,0.017509054392576,-0.059192456305027,-0.019057611003518,0.154353260993958,0.005675478372723,-0.063815049827099,-0.023798029869795,0.256684660911560,0.066574431955814,-0.166863560676575,0.066484421491623,-0.058906890451908) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.105782702565193,0.009047032333910,0.028139483183622,-0.081983350217342,0.152383804321289,0.110706485807896,-0.002066070912406,-0.015411667525768,-0.055275283753872,0.069582834839821,0.035083640366793,0.009123612195253,-0.485538214445114,-0.061196852475405,-0.271926730871201,-0.104211010038853) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.254110902547836,0.256900995969772,0.016644701361656,0.118497334420681,-0.081130065023899,0.017090812325478,0.085540793836117,0.061175908893347,-0.011159030720592,-0.088915407657623,-0.221550822257996,0.235099285840988,-0.105867318809032,0.510340332984924,-0.527662634849548,0.468784421682358) * MODEL11_texOff(vec2(0,0));
res += mat4(0.046814586967230,-0.005008744075894,0.016624696552753,0.269213050603867,0.021655427291989,0.048126392066479,-0.128532543778419,0.110347494482994,0.082052715122700,-0.078987658023834,-0.036949496716261,0.141795694828033,0.100884944200516,-0.565975129604340,0.023827748373151,-0.118603400886059) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.059077113866806,0.021994123235345,-0.095482960343361,0.013033689931035,0.105443865060806,-0.089406572282314,-0.059927374124527,0.048787523061037,0.101906515657902,-0.018175309523940,0.057835493236780,-0.022344658151269,0.070286020636559,0.034998212009668,0.033969800919294,-0.046213716268539) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.027242690324783,-0.035887110978365,0.016931027173996,0.015957871451974,-0.004805797245353,0.089498594403267,0.020518925040960,0.068655475974083,0.171838819980621,0.000082498030679,0.069831430912018,-0.028915448114276,0.025380685925484,0.062817357480526,-0.045292545109987,-0.360528320074081) * MODEL11_texOff(vec2(1,0));
res += mat4(0.110026158392429,-0.015477962791920,-0.027393711730838,0.160399168729782,-0.073315523564816,-0.224650323390961,-0.017657052725554,0.077255286276340,0.041997302323580,-0.095798760652542,0.071737192571163,0.007124770432711,-0.028937889263034,-0.153602421283722,-0.036111779510975,-0.081959299743176) * MODEL11_texOff(vec2(1,1));
res += mat4(0.066461384296417,0.028274085372686,-0.093038864433765,-0.015504368580878,-0.134153872728348,-0.117581717669964,-0.027918485924602,0.149941399693489,0.136731192469597,0.012112071737647,0.045923016965389,-0.059890020638704,-0.028041545301676,0.008174465969205,-0.034499097615480,-0.032649032771587) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.058923926204443,-0.030980350449681,0.045200355350971,0.290244787931442,-0.075493894517422,-0.023254960775375,0.091572254896164,0.195768907666206,0.238087162375450,0.237625971436501,0.155454203486443,0.119411222636700,-0.033519264310598,0.006542351562530,0.146559134125710,0.027763536199927) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.083767488598824,-0.087730102241039,-0.036058925092220,0.050780594348907,0.171145707368851,-0.081960402429104,-0.062105335295200,-0.028523638844490,0.014463950879872,-0.025551248341799,-0.025900309905410,-0.023692078888416,-0.029574265703559,-0.020082734525204,-0.030733484774828,0.041056159883738) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.229869931936264,0.076128721237183,0.001308387727477,0.142749622464180,-0.150537475943565,0.055533431470394,0.008620855398476,-0.023846399039030,0.120403103530407,0.040889021009207,-0.029582437127829,-0.133419111371040,-0.221608698368073,0.036800257861614,-0.001204742700793,-0.074737340211868) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.101100303232670,0.031381156295538,0.309109091758728,0.201637595891953,-0.191399514675140,0.123432792723179,-0.054515510797501,0.183078899979591,0.060180328786373,0.111137703061104,-0.215687856078148,-0.049890566617250,0.017809428274632,0.219805315136909,0.235564082860947,-0.066233091056347) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.073824189603329,-0.148211479187012,-0.012482154183090,0.100484594702721,0.080870926380157,-0.156678825616837,0.005340908188373,-0.293092966079712,0.012326591648161,0.289233416318893,-0.021865736693144,-0.096286855638027,-0.014899157918990,0.030185133218765,-0.003098989836872,-0.033042076975107) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.046982713043690,0.019274843856692,-0.059788074344397,0.053517565131187,0.064427964389324,-0.004240669310093,-0.016675215214491,-0.068650998175144,0.297841668128967,-0.074699267745018,-0.008054679259658,0.194315969944000,-0.040657199919224,-0.057760693132877,-0.015710068866611,-0.012753830291331) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.203755885362625,0.107012391090393,-0.164111301302910,0.102738581597805,0.226055696606636,-0.110294945538044,-0.057080190628767,-0.125474676489830,-0.010774565860629,0.093580029904842,0.123815700411797,0.078356333076954,0.093197286128998,-0.048812918365002,-0.103885859251022,0.014628633856773) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.138024255633354,0.072685830295086,-0.072625108063221,-0.004797325003892,0.120518244802952,-0.042905956506729,0.065904021263123,-0.205883890390396,-0.031274326145649,-0.004256220068783,0.024947350844741,-0.002015812322497,-0.074138075113297,0.077503159642220,-0.109841629862785,-0.021074738353491) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.055566158145666,0.655475676059723,-0.511568188667297,0.403348416090012) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL2
//!DESC [AiUpscale_HQ_3x_Photo] mapping 5_2

vec4 hook()
{
vec4 res = vec4(-0.100999772548676,0.101221919059753,-0.074994750320911,-0.018447132781148);
res += mat4(-0.058323964476585,0.039060726761818,-0.097375646233559,0.073164910078049,-0.193449124693871,-0.020680237561464,-0.031454317271709,0.041239228099585,-0.135227039456367,-0.045715574175119,0.075232125818729,0.036254335194826,-0.101041510701180,0.012398725375533,-0.033843010663986,-0.022541185840964) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.097635217010975,-0.070208422839642,-0.120555683970451,0.021786982193589,-0.134390130639076,-0.015661621466279,-0.056659474968910,-0.109912224113941,0.028880912810564,-0.010588035918772,0.220147490501404,0.001960676629096,-0.066968381404877,0.010783520527184,0.119389370083809,0.016483673825860) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.062618955969810,-0.012013394385576,-0.022014779970050,-0.011481091380119,0.186010226607323,-0.196486160159111,0.053553842008114,0.065739817917347,0.042846612632275,-0.065889246761799,0.006638721562922,0.076673336327076,-0.076748415827751,0.018807496875525,-0.046813074499369,0.281208693981171) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.022396232932806,0.011357015930116,0.094764687120914,0.076750941574574,0.440382450819016,0.021467722952366,-0.019145211204886,-0.080614775419235,0.100881442427635,0.018896466121078,-0.082539983093739,-0.041491854935884,-0.111551165580750,-0.066285297274590,0.008881660178304,0.061461832374334) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.035339817404747,-0.113890014588833,0.043844033032656,0.048601295799017,0.118682160973549,0.090947195887566,0.071559384465218,-0.132024705410004,0.245712280273438,-0.161983624100685,-0.114303752779961,0.044594705104828,0.030373329296708,0.139006108045578,0.005597038194537,0.075046271085739) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.027236485853791,-0.106828883290291,0.142004847526550,0.202039659023285,0.012579160742462,0.116598099470139,0.048908788710833,-0.271512418985367,-0.051157150417566,-0.038664825260639,-0.163681074976921,-0.063080817461014,0.044609688222408,0.035272687673569,0.114221692085266,0.045624997466803) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.032162327319384,0.018410239368677,-0.081274144351482,0.019511435180902,0.080401591956615,-0.019234880805016,0.024129278957844,0.154142543673515,-0.135683521628380,0.081613294780254,-0.086410216987133,0.115428395569324,-0.177983760833740,-0.103928796947002,-0.033065263181925,-0.025896782055497) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.044860202819109,0.043580554425716,0.020785162225366,0.006229379214346,-0.153931707143784,0.058611303567886,0.096629381179810,-0.068510390818119,0.122472740709782,-0.078468307852745,-0.046885441988707,0.066183649003506,0.130074277520180,0.092963896691799,-0.126111745834351,0.123488552868366) * MODEL7_texOff(vec2(1,0));
res += mat4(0.008951744996011,-0.073941022157669,0.101556785404682,0.085641562938690,0.111479707062244,0.081897340714931,-0.037324693053961,0.048992890864611,-0.110154695808887,-0.089658670127392,-0.031977262347937,0.174032807350159,-0.065342918038368,0.113175742328167,-0.009514276869595,-0.055238373577595) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.122211851179600,0.008938664570451,0.042411010712385,-0.027874372899532,0.066307552158833,-0.046777840703726,-0.174136444926262,0.037326905876398,-0.016693737357855,0.065114133059978,-0.072604946792126,0.045126605778933,0.244234919548035,0.006132293958217,0.120678484439850,0.105805620551109) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.017237227410078,-0.035471901297569,0.083875007927418,0.018048377707601,-0.086712226271629,-0.051762625575066,-0.097179330885410,0.041944000869989,-0.094934679567814,-0.088283695280552,0.130072310566902,0.027499420568347,0.258386522531509,0.012492715381086,-0.015185730531812,0.052645374089479) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.045635569840670,-0.048179246485233,0.035432353615761,0.066891074180603,0.175843983888626,-0.037379022687674,-0.104300267994404,0.048892386257648,-0.118425562977791,-0.054881580173969,0.150313496589661,0.021927034482360,0.126918062567711,0.093137241899967,0.059215575456619,-0.070399351418018) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.046392560005188,-0.021820262074471,0.205344691872597,-0.042870316654444,0.094194598495960,-0.139883041381836,0.147399321198463,-0.128448605537415,0.076073579490185,0.045010540634394,-0.012888852506876,0.074225351214409,0.063090577721596,0.004526618402451,-0.040000807493925,0.068596981465816) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.099269889295101,-0.036248557269573,0.032617714256048,0.043571565300226,-0.140780255198479,0.120757818222046,0.027243278920650,0.139577224850655,0.138089552521706,-0.180130273103714,-0.175821155309677,0.243609502911568,-0.181060925126076,-0.063499405980110,0.117047324776649,0.033927898854017) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.031163638457656,-0.015835074707866,0.201354876160622,0.149930581450462,0.062850952148438,0.079985029995441,-0.169439852237701,0.125757202506065,0.232029289007187,0.259117543697357,0.090329222381115,0.060800042003393,-0.221398055553436,-0.089366234838963,-0.023679185658693,0.255713671445847) * MODEL8_texOff(vec2(0,1));
res += mat4(0.047051608562469,0.008743649348617,-0.079874850809574,-0.061100635677576,-0.115423120558262,-0.015512291342020,-0.004957248456776,-0.061409346759319,-0.267961174249649,0.032991688698530,-0.046447519212961,-0.014976800419390,-0.205150604248047,-0.021453326568007,0.023293796926737,0.046978041529655) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.158764675259590,-0.074690543115139,0.017562633380294,0.028558762744069,-0.051450125873089,0.024478679522872,-0.023266052827239,0.072605282068253,-0.154234454035759,-0.357182532548904,-0.068706117570400,0.045504327863455,0.063015423715115,0.137511610984802,-0.000278057559626,-0.080588504672050) * MODEL8_texOff(vec2(1,0));
res += mat4(0.048185233026743,0.092137731611729,-0.069900095462799,0.156020432710648,-0.079246841371059,-0.054914116859436,-0.088651031255722,0.086270883679390,0.014618294313550,0.016080725938082,-0.028155155479908,-0.012654908932745,0.022055692970753,-0.319097638130188,0.067507036030293,0.166032537817955) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.138957530260086,0.020248454064131,-0.149517297744751,0.079373180866241,-0.078992933034897,-0.053321197628975,-0.058192472904921,-0.092351824045181,-0.255251705646515,0.051089547574520,-0.012333791702986,0.080333106219769,-0.272728115320206,-0.050453931093216,-0.171741202473640,0.009662007912993) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.234605044126511,0.012482832185924,0.107763759791851,0.129988387227058,0.149873107671738,0.001090059056878,0.021035505458713,-0.101659193634987,0.181689977645874,0.073386766016483,-0.245905950665474,0.143561333417892,-0.118898384273052,-0.009900454431772,0.026778291910887,0.052092924714088) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.005360335111618,-0.059269759804010,0.064511880278587,0.167605906724930,0.208752200007439,0.024432701990008,0.009193347766995,-0.123277343809605,0.098618544638157,0.006344245746732,-0.062507018446922,0.013046989217401,-0.013790677301586,-0.019403384998441,0.162903591990471,-0.046248026192188) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.132472559809685,-0.115316919982433,-0.157407298684120,0.110665298998356,0.249390453100204,0.012581578455865,-0.028148273006082,-0.191544577479362,-0.027447719126940,0.053338166326284,-0.019689150154591,0.124977052211761,-0.284989744424820,-0.057996306568384,-0.020556440576911,-0.026238273829222) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.064358301460743,0.194096967577934,-0.070211775600910,-0.318260133266449,0.016336672008038,0.069307491183281,-0.146758109331131,-0.057164933532476,-0.037557411938906,0.144391208887100,0.073126271367073,0.001995455008000,-0.031906813383102,-0.007552675437182,-0.156961902976036,0.092870645225048) * MODEL9_texOff(vec2(0,0));
res += mat4(0.058448512107134,-0.159522533416748,-0.068104252219200,0.121860019862652,0.002762791002169,0.047417882829905,-0.226643338799477,-0.268684297800064,-0.112817578017712,0.004081434104592,-0.001775003154762,0.021011479198933,0.015921082347631,-0.057858690619469,-0.258871883153915,0.255011469125748) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.035107381641865,-0.007738032843918,0.072391867637634,0.010163688100874,0.119357220828533,0.071683228015900,0.041466824710369,-0.052582606673241,-0.044925648719072,0.009620893746614,0.042657904326916,0.002476338529959,0.267635852098465,0.061993576586246,0.019158821552992,0.035292156040668) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.022829473018646,0.045195873826742,0.009977720677853,0.065185606479645,-0.110856331884861,-0.042716015130281,0.012097757309675,-0.148621529340744,-0.005624002311379,0.056923709809780,-0.073485784232616,0.033917233347893,0.371944367885590,-0.004866940435022,0.020055897533894,0.045528702437878) * MODEL9_texOff(vec2(1,0));
res += mat4(0.034757014364004,-0.001220029778779,-0.011398068629205,0.012818126007915,-0.291744589805603,0.257642894983292,0.090526804327965,0.086157254874706,0.001557990210131,0.072880007326603,0.069408148527145,0.096431843936443,0.066339142620564,0.089546971023083,0.148590683937073,0.103812627494335) * MODEL9_texOff(vec2(1,1));
res += mat4(0.071472823619843,-0.058240257203579,-0.000015668185370,-0.014481193386018,-0.195875033736229,0.010723016224802,0.088810749351978,0.075530499219894,0.187021300196648,-0.088145054876804,-0.034275274723768,-0.053689997643232,0.046762719750404,-0.006119439378381,0.049166291952133,-0.001475610421039) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.134908750653267,-0.025824347510934,-0.162858143448830,-0.192933976650238,-0.040208488702774,0.091947890818119,-0.077305339276791,-0.069388151168823,0.137780845165253,-0.080831088125706,-0.173989191651344,-0.194664299488068,-0.041603252291679,-0.116594359278679,0.323296010494232,-0.170105442404747) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.055515110492706,0.029688179492950,0.023607533425093,-0.057221125811338,0.082522489130497,-0.117482416331768,-0.071580380201340,0.303419888019562,0.003949840553105,-0.109480313956738,-0.115464031696320,-0.211608350276947,0.053103920072317,0.060994323343039,0.164989456534386,-0.071622684597969) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.066135361790657,0.132826402783394,0.095049634575844,0.003583115525544,0.112554475665092,-0.104428388178349,0.124875567853451,-0.026569405570626,0.006372535135597,-0.042292073369026,0.000536500592716,-0.017763411626220,-0.188987269997597,0.024984830990434,0.054284799844027,-0.081649474799633) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.021832354366779,-0.103446207940578,0.080064170062542,0.067597016692162,0.043118432164192,0.142692044377327,0.263939946889877,-0.155260980129242,0.116110205650330,-0.140657916665077,0.054983716458082,-0.018971461802721,-0.138429775834084,0.050764981657267,-0.087431453168392,0.076890319585800) * MODEL10_texOff(vec2(0,0));
res += mat4(0.017296601086855,-0.029214125126600,0.023098709061742,-0.109931342303753,-0.002431669272482,-0.310123562812805,0.066558659076691,0.447926759719849,0.023291472345591,-0.092610314488411,-0.021405328065157,-0.097175486385822,-0.069876536726952,0.233260929584503,0.085234425961971,-0.145445704460144) * MODEL10_texOff(vec2(0,1));
res += mat4(0.049276173114777,0.000092057358415,0.106251075863838,0.050635632127523,-0.165519893169403,0.112463198602200,-0.184943914413452,0.092476606369019,0.109515435993671,-0.065794304013252,0.118626490235329,-0.056061822921038,0.073548346757889,0.040735233575106,0.043732274323702,-0.068120263516903) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.000649438821711,0.010111084207892,0.031006250530481,-0.033245928585529,0.000230745383305,0.088718093931675,-0.190804928541183,-0.046257738023996,-0.004295874387026,-0.085851445794106,0.107112243771553,-0.045907247811556,0.031584180891514,0.042544018477201,0.010120445862412,-0.018364874646068) * MODEL10_texOff(vec2(1,0));
res += mat4(0.205760478973389,-0.005745035130531,0.024755500257015,0.109412841498852,0.086040228605270,-0.125732347369194,-0.063108086585999,0.074826285243034,-0.105640381574631,0.074632458388805,0.046679753810167,0.127257719635963,-0.067813493311405,0.009730600751936,0.042921140789986,0.054453849792480) * MODEL10_texOff(vec2(1,1));
res += mat4(0.161088272929192,-0.025823885574937,-0.050994604825974,0.192144170403481,0.073948413133621,-0.007937819696963,-0.008115918375552,0.026498619467020,0.106222502887249,0.027313107624650,0.037933301180601,-0.018739188089967,0.408837080001831,0.082932747900486,-0.122851021587849,0.002310598734766) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.002437992021441,0.030148204416037,0.025654908269644,-0.040597394108772,0.038202688097954,-0.082062810659409,-0.285279512405396,-0.043612293899059,0.151624515652657,-0.008080908097327,-0.149918884038925,0.012272788211703,0.206189900636673,0.084284380078316,-0.397564738988876,-0.079015240073204) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.026425128802657,0.102263949811459,0.129051700234413,-0.073819175362587,-0.153484791517258,0.027221983298659,0.011394279077649,-0.061566714197397,0.134721517562866,0.020672915503383,-0.145825281739235,0.104970499873161,-0.030466752126813,0.107546418905258,-0.171201676130295,-0.095590814948082) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.084625728428364,0.003787496592849,0.117971219122410,0.008790230378509,0.169944360852242,-0.031734444200993,-0.038478095084429,-0.038325563073158,-0.064720340073109,0.042651262134314,0.155172944068909,0.120773226022720,-0.074627496302128,0.123344928026199,0.121914148330688,0.051392182707787) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.083024151623249,0.054200757294893,0.019958475604653,-0.251701116561890,-0.025015408173203,0.090380504727364,0.113078348338604,-0.117600381374359,-0.279345929622650,-0.046995509415865,0.071948967874050,-0.051871813833714,-0.329920381307602,0.125660389661789,0.268952250480652,-0.314642876386642) * MODEL11_texOff(vec2(0,0));
res += mat4(0.093952089548111,0.003055907553062,-0.026221120730042,0.231519907712936,0.105357244610786,0.105195961892605,0.102593794465065,0.131629884243011,-0.123181708157063,0.014621979556978,-0.091418623924255,0.318478971719742,0.013370836153626,-0.358638614416122,0.173842683434486,0.570678472518921) * MODEL11_texOff(vec2(0,1));
res += mat4(0.081300742924213,-0.094577498733997,0.047761783003807,0.039287149906158,-0.056635495275259,0.085295684635639,0.061882868409157,-0.094372645020485,-0.142623767256737,0.039919983595610,-0.006368551868945,-0.018992764875293,0.040006265044212,0.062367029488087,-0.046456318348646,-0.003551610512659) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.049498751759529,-0.017104765400290,-0.007537971250713,-0.082934066653252,-0.103888675570488,0.055384512990713,-0.051153063774109,0.015201215632260,0.031098173931241,-0.080057725310326,-0.020014014095068,-0.043875705450773,-0.003283141413704,0.241162568330765,0.045842457562685,-0.150576829910278) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.046192489564419,0.010581798851490,-0.067330464720726,0.046149257570505,-0.075130596756935,0.002734142122790,-0.075009942054749,0.146712288260460,-0.005335804540664,0.043010570108891,0.067048922181129,0.056694310158491,0.022160267457366,-0.284363090991974,-0.003878502873704,0.142934516072273) * MODEL11_texOff(vec2(1,1));
res += mat4(0.218742355704308,0.076271474361420,-0.016168041154742,-0.016407117247581,0.182339310646057,-0.011242324486375,-0.084245666861534,-0.038943544030190,-0.022320939227939,0.085049390792847,0.158340856432915,0.091102659702301,-0.245433017611504,0.041258521378040,0.082369662821293,0.006075333803892) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.084693640470505,0.017138194292784,-0.100020051002502,0.070945121347904,0.243495315313339,0.053470093756914,-0.192826837301254,-0.080413021147251,0.050946783274412,-0.067166663706303,-0.144811078906059,0.017770096659660,-0.147267222404480,-0.027356063947082,0.137079730629921,0.045882165431976) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.034519027918577,0.042405299842358,-0.147237330675125,0.071586608886719,-0.130206018686295,0.091857939958572,0.036193452775478,-0.099525116384029,0.048457372933626,-0.008068425580859,0.044325910508633,-0.133065968751907,-0.139802321791649,-0.004454269539565,0.147951379418373,-0.029729807749391) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.052591051906347,0.031360570341349,0.098418697714806,0.021779330447316,0.057513568550348,0.073132216930389,0.060054067522287,-0.054406553506851,0.011869163252413,-0.019996935501695,0.132958799600601,-0.068873532116413,-0.064018093049526,0.021036768332124,0.054014872759581,-0.032352972775698) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.173921361565590,0.006984293926507,-0.350019812583923,0.184389114379883,-0.076105318963528,0.083873711526394,0.042857207357883,-0.141810983419418,-0.039801742881536,0.067529007792473,0.140460222959518,0.020780539140105,0.111182406544685,-0.046343792229891,-0.217014521360397,-0.085833922028542) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.035206247121096,0.017442297190428,-0.169458195567131,0.007682754658163,-0.083796717226505,-0.042385682463646,0.151565790176392,0.187949031591415,-0.063231334090233,0.144966825842857,0.060889847576618,-0.041305851191282,0.059021577239037,-0.119380176067352,-0.138536870479584,-0.099416054785252) * MODEL12_texOff(vec2(0,1));
res += mat4(0.062455136328936,0.007773349527270,-0.039941225200891,0.054560497403145,-0.042729433625937,-0.104127205908298,-0.015034273266792,-0.014427115209401,-0.221723183989525,-0.059466291218996,-0.103265091776848,-0.045618284493685,-0.120196200907230,0.001599624403752,0.065440505743027,0.017414778470993) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.095265805721283,-0.183813482522964,0.111187040805817,-0.090051278471947,-0.097853630781174,0.066914372146130,0.042492944747210,-0.006439033895731,-0.035494126379490,0.182401210069656,-0.053569011390209,-0.030819579958916,0.210789844393730,-0.013930456712842,-0.007842411287129,0.001395446830429) * MODEL12_texOff(vec2(1,0));
res += mat4(0.149175837635994,0.055608756840229,0.015146572142839,0.035378549247980,-0.192332610487938,-0.277898132801056,-0.056811384856701,-0.107773602008820,-0.000604244763963,-0.116846993565559,-0.030680051073432,-0.112007781863213,-0.077451385557652,0.011916539631784,0.123817682266235,-0.253837466239929) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.028675777837634,0.327921599149704,-0.143334180116653,0.270526766777039) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL3
//!DESC [AiUpscale_HQ_3x_Photo] mapping 5_3

vec4 hook()
{
vec4 res = vec4(0.005600843578577,-0.425012677907944,0.038308039307594,0.055732652544975);
res += mat4(-0.045144595205784,-0.111462064087391,-0.028253037482500,-0.100715465843678,-0.066157795488834,0.013097725808620,0.153189629316330,-0.121674597263336,-0.026038218289614,0.085692636668682,0.030313992872834,0.110415466129780,0.061657674610615,0.104536339640617,-0.088294565677643,0.188556268811226) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.176295027136803,0.032707013189793,-0.141574457287788,-0.070875152945518,-0.058377794921398,-0.079930134117603,0.134172499179840,-0.129098162055016,-0.013607612811029,-0.027398036792874,0.131391435861588,0.025611620396376,0.005535185802728,-0.021045036613941,0.037620283663273,-0.278043508529663) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.067017346620560,-0.035518627613783,0.067670471966267,-0.077064953744411,-0.166521638631821,-0.150965079665184,0.210891753435135,-0.051404513418674,0.134431466460228,0.092832431197166,0.052330624312162,0.195608422160149,-0.024163542315364,0.112226523458958,0.051451861858368,0.051152195781469) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.047619082033634,-0.370321840047836,-0.181506872177124,-0.028408972546458,0.042580012232065,0.013410216197371,-0.051990918815136,0.111076183617115,-0.009767912328243,-0.089026629924774,-0.042233418673277,-0.002111492445692,-0.143076732754707,0.264261394739151,-0.059506855905056,-0.057357408106327) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.103469543159008,-0.333710193634033,0.235338211059570,-0.007394878193736,0.142447948455811,-0.060117807239294,-0.389545887708664,0.159986466169357,-0.036423496901989,0.078107632696629,-0.297932207584381,0.080439858138561,-0.071059741079807,0.076332546770573,-0.113380134105682,-0.028863128274679) * MODEL7_texOff(vec2(0,0));
res += mat4(0.003924505785108,-0.068017236888409,0.135343238711357,0.049187310039997,0.227948531508446,0.021439060568810,-0.026333199813962,-0.174024760723114,0.040508672595024,-0.031354770064354,0.064988777041435,-0.026345154270530,-0.012806989252567,0.223754197359085,0.000473976891953,0.044978059828281) * MODEL7_texOff(vec2(0,1));
res += mat4(0.029147598892450,-0.135377451777458,-0.150559291243553,0.003220222657546,0.185559451580048,0.084682345390320,-0.026915311813354,-0.085803896188736,0.131686851382256,0.001170851057395,-0.046921398490667,-0.014434913173318,0.119625449180603,0.016075538471341,0.178593069314957,-0.065713323652744) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.092871874570847,0.045285526663065,-0.065198481082916,-0.084707498550415,-0.265561461448669,0.067419774830341,0.095686420798302,-0.038254030048847,-0.353374183177948,-0.012431913055480,-0.119606181979179,-0.170678138732910,0.170133024454117,0.088392116129398,0.140263780951500,0.172015845775604) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.015541998669505,0.025498146191239,-0.037117987871170,-0.013764462433755,-0.059920210391283,0.203161358833313,0.351447433233261,0.141357585787773,0.146178543567657,0.070793405175209,0.177125811576843,0.059336327016354,0.146346554160118,0.108862943947315,-0.218471705913544,-0.037243895232677) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.019260795786977,0.081767790019512,-0.085065893828869,0.024293696507812,0.108357585966587,-0.001135395141318,-0.005150584504008,-0.072380788624287,-0.219662234187126,-0.026478238403797,-0.104873098433018,-0.005254260264337,-0.086767092347145,-0.008730154484510,-0.072465211153030,-0.008674352429807) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.074123412370682,0.006492795888335,0.112433061003685,-0.123417943716049,-0.046599667519331,-0.149028390645981,0.026589794084430,-0.005505589302629,-0.108244016766548,0.131782218813896,-0.092666439712048,-0.212308913469315,0.217786356806755,0.105662919580936,-0.316924244165421,0.152754262089729) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.000943347520661,0.214262202382088,0.005915089976043,0.012418222613633,-0.369790643453598,0.042813505977392,-0.116102337837219,-0.102121181786060,0.059363119304180,-0.040852788835764,0.080262273550034,-0.095682024955750,0.151809185743332,-0.171247288584709,-0.098919659852982,-0.224754080176353) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.053908985108137,0.068915583193302,0.090081684291363,-0.053334634751081,0.121666632592678,-0.018729252740741,0.019795056432486,-0.006990270689130,-0.176080241799355,-0.127754911780357,0.204605311155319,-0.288049101829529,0.055490531027317,0.061771351844072,-0.167487144470215,-0.067811839282513) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.008999407291412,0.184145852923393,0.016661660745740,0.104671098291874,0.200789421796799,-0.014509183354676,-0.181608498096466,-0.132314696907997,0.029211958870292,0.287182092666626,-0.172082453966141,0.021422013640404,0.042653668671846,-0.152957469224930,-0.004517568275332,-0.161052644252777) * MODEL8_texOff(vec2(0,0));
res += mat4(0.142933741211891,-0.069159917533398,0.037340257316828,-0.078073486685753,0.055785104632378,0.158154368400574,0.073282301425934,0.230362102389336,-0.220099970698357,0.147859364748001,-0.114431798458099,0.210456684231758,-0.209679290652275,0.173170238733292,0.229305520653725,0.039413060992956) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.265263438224792,0.199445381760597,0.044708780944347,0.019444793462753,-0.248321756720543,-0.076948739588261,-0.033194236457348,0.002740776631981,0.022205663844943,-0.025361444801092,-0.025935700163245,0.032837308943272,0.071984343230724,-0.002596074016765,0.030087774619460,0.053396049886942) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.140518590807915,0.129670262336731,-0.048130255192518,0.073877424001694,0.164830133318901,0.081256464123726,-0.024874530732632,-0.226548105478287,-0.033658441156149,0.292013078927994,0.130448400974274,0.039635609835386,-0.172791585326195,-0.047319158911705,0.132870301604271,0.025558656081557) * MODEL8_texOff(vec2(1,0));
res += mat4(0.163057342171669,0.319134712219238,-0.141153529286385,0.022773195058107,-0.098179526627064,0.062231089919806,-0.070159532129765,0.120188906788826,-0.005296778865159,-0.057822097092867,-0.014078174717724,-0.056540023535490,-0.185757443308830,0.053849715739489,-0.099782966077328,0.121011748909950) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.035518672317266,-0.250459939241409,0.209620848298073,-0.140806660056114,0.061451349407434,0.123341009020805,-0.239601120352745,0.140410006046295,-0.220551148056984,0.218499079346657,0.102742262184620,-0.069509036839008,0.065650679171085,0.132730349898338,-0.279427021741867,0.089043796062469) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.011504290625453,-0.063948862254620,0.107371613383293,0.059494197368622,0.000290475523798,-0.037266328930855,0.080762639641762,-0.027633354067802,-0.179812148213387,0.210714176297188,-0.173018515110016,-0.090036258101463,0.067538157105446,-0.018592134118080,0.216071173548698,-0.074417263269424) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.248469009995461,-0.022445676848292,0.079183042049408,0.045128069818020,0.052901148796082,-0.072815544903278,-0.041133102029562,-0.116110727190971,-0.056306477636099,-0.085442952811718,-0.121768109500408,0.048882864415646,0.011686588637531,0.031290404498577,0.134031623601913,-0.096232786774635) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.266860604286194,0.015026591718197,-0.218835949897766,0.050023194402456,0.066236190497875,-0.013997032307088,0.300049364566803,0.083167634904385,0.094679638743401,0.099466264247894,-0.151217654347420,-0.060795221477747,0.216674089431763,-0.273864686489105,0.233579263091087,-0.362590134143829) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.073609091341496,-0.246048614382744,-0.081864491105080,-0.226385593414307,-0.004019878804684,-0.112936697900295,-0.084292866289616,0.134084329009056,-0.114528201520443,0.305824428796768,-0.022725688293576,0.100369222462177,-0.375223636627197,0.242012113332748,-0.019591767340899,-0.144430592656136) * MODEL9_texOff(vec2(0,0));
res += mat4(0.321718007326126,0.097330369055271,0.023736827075481,-0.047309748828411,-0.010014018043876,-0.116739757359028,-0.232912808656693,-0.110144183039665,-0.021970866248012,-0.259899049997330,0.191399991512299,-0.068538941442966,-0.094909071922302,0.235850438475609,-0.119220115244389,0.200709477066994) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.046259038150311,-0.102882243692875,-0.162301927804947,-0.104008883237839,-0.241290375590324,-0.000577519589569,-0.075180768966675,0.042673602700233,0.136329919099808,-0.163610070943832,0.024302447214723,-0.040948472917080,0.250322520732880,0.047141335904598,-0.019795890897512,0.042567741125822) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.268863499164581,-0.026085190474987,0.033076651394367,0.089823067188263,-0.132795229554176,0.072122208774090,0.055851377546787,-0.052170582115650,0.081584565341473,-0.072551876306534,-0.123872376978397,0.097771272063255,-0.231317684054375,0.043081112205982,-0.317509144544601,0.057956997305155) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.038388662040234,-0.020623102784157,-0.106134645640850,-0.053379233926535,-0.160246118903160,0.045409735292196,-0.101328320801258,0.016982629895210,-0.028240693733096,-0.121269471943378,-0.127708837389946,0.003376770997420,0.072764880955219,-0.013458336703479,0.044454224407673,-0.105213217437267) * MODEL9_texOff(vec2(1,1));
res += mat4(0.112861126661301,0.097604870796204,-0.087763063609600,-0.090029142796993,-0.044003143906593,0.028109822422266,-0.046069677919149,0.027468111366034,-0.002606684342027,0.011258270591497,-0.121458321809769,0.041317209601402,0.063381031155586,0.183731913566589,-0.323508888483047,0.075231842696667) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.289192378520966,0.040123533457518,-0.033499002456665,0.019286887720227,-0.128449231386185,-0.234578713774681,-0.000759674469009,0.046716447919607,0.079396456480026,-0.042389471083879,-0.067722991108894,0.211135447025299,-0.270642638206482,-0.159711346030235,0.235349163413048,-0.222384721040726) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.262780368328094,0.038375809788704,-0.023336227983236,-0.057663265615702,-0.029384810477495,-0.010604226961732,-0.030100645497441,-0.047524590045214,-0.121767640113831,0.067867107689381,-0.097647599875927,-0.055462602525949,0.166288301348686,-0.063718773424625,0.077711977064610,0.004062938969582) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.136688873171806,0.112008862197399,-0.109092094004154,-0.201385661959648,0.132782191038132,0.000645010964945,0.038023319095373,0.015718990936875,0.072479255497456,-0.018283827230334,-0.019852498546243,-0.033848818391562,0.156707331538200,-0.015858953818679,0.099006526172161,-0.096866823732853) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.055455420166254,0.002826960990205,-0.049040276557207,-0.064997434616089,-0.049476709216833,-0.349276989698410,-0.091611981391907,-0.094095736742020,0.047874715179205,-0.110988333821297,0.087528012692928,-0.097310759127140,-0.026510195806623,-0.038451988250017,0.098433077335358,0.024592166766524) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.262592792510986,-0.059072464704514,-0.211445823311806,-0.105335347354412,0.172442555427551,0.176312819123268,-0.066061079502106,0.106243744492531,0.118773683905602,0.033018961548805,0.172331020236015,-0.098185159265995,-0.122767634689808,-0.147599056363106,0.030246516689658,-0.147774517536163) * MODEL10_texOff(vec2(0,1));
res += mat4(0.005022632423788,0.113785579800606,0.336116939783096,-0.136518344283104,0.074389591813087,0.090262919664383,0.104088276624680,-0.030701588839293,0.178983032703400,-0.055106647312641,-0.087261930108070,-0.090943031013012,0.117241330444813,0.092958554625511,-0.074080578982830,-0.095475532114506) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.004693798255175,-0.097326867282391,-0.198294058442116,-0.077562682330608,-0.309037297964096,0.197458714246750,0.355458855628967,0.305100381374359,0.170806184411049,0.064335547387600,-0.105598002672195,-0.135750815272331,-0.032340239733458,0.046295493841171,-0.245551243424416,-0.097416415810585) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.328371345996857,-0.153365507721901,0.083404049277306,0.150673583149910,0.070606648921967,0.036988686770201,-0.246500954031944,-0.203578725457191,0.136044189333916,0.082394614815712,0.016256544739008,0.115110248327255,-0.220031723380089,-0.043319016695023,0.038402061909437,0.072661004960537) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.131913959980011,0.234771326184273,0.104543149471283,-0.243942752480507,-0.251502275466919,0.132230058312416,0.042786303907633,-0.177578613162041,-0.185695171356201,0.021439332515001,0.043394934386015,0.055426985025406,0.017964206635952,0.124012827873230,0.082112707197666,-0.224507436156273) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.061721656471491,0.063744306564331,-0.056945428252220,0.038502257317305,0.166103392839432,0.094710186123848,-0.130362033843994,0.159478276968002,-0.130352050065994,0.064753644168377,-0.135847002267838,-0.094691999256611,-0.004421658813953,0.181142240762711,-0.165967121720314,0.251227915287018) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.041631620377302,0.105239830911160,0.093976370990276,0.096204921603203,0.132148027420044,-0.024892665445805,-0.124564640223980,-0.144109457731247,-0.090980209410191,0.058227822184563,0.088624835014343,-0.075471132993698,0.229436784982681,0.093044765293598,-0.013537731952965,-0.040210902690887) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.073491692543030,0.157525166869164,0.112274162471294,0.033668402582407,0.304764330387115,0.077631205320358,-0.222139790654182,0.083447724580765,0.003051730105653,0.043579101562500,-0.107461892068386,-0.067482084035873,-0.085906229913235,-0.132293179631233,-0.097144156694412,0.140736967325211) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.042011637240648,-0.097625054419041,-0.218828305602074,-0.161480635404587,-0.009887415915728,-0.161592632532120,-0.064830198884010,-0.163449764251709,-0.293041229248047,0.115346767008305,-0.066764175891876,-0.030806921422482,0.166982784867287,-0.520446896553040,0.282146573066711,-0.273305237293243) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.017905885353684,0.056385759264231,-0.007648453116417,-0.062207177281380,-0.024348983541131,0.052410468459129,0.138909459114075,-0.020221915096045,-0.056417189538479,-0.026066081598401,0.031297285109758,0.011067284271121,-0.112128727138042,0.001268864609301,0.148860573768616,0.180894985795021) * MODEL11_texOff(vec2(0,1));
res += mat4(0.166991040110588,0.132643833756447,0.055950853973627,-0.037969093769789,0.009235560894012,0.065070956945419,-0.306927621364594,-0.052103988826275,0.067638650536537,0.006833302322775,0.133182585239410,-0.040429625660181,-0.103445008397102,0.042325895279646,-0.040010549128056,0.013180747628212) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.192553222179413,-0.179507225751877,0.174490928649902,0.147091209888458,-0.342438220977783,0.051613181829453,0.041382726281881,0.018470969051123,-0.057676166296005,-0.125619202852249,0.033654022961855,-0.090567618608475,-0.285983085632324,-0.073859132826328,-0.026765324175358,-0.014642750844359) * MODEL11_texOff(vec2(1,0));
res += mat4(0.188948094844818,0.099472187459469,-0.073349982500076,-0.046790797263384,0.170037820935249,-0.067860357463360,0.093926444649696,0.016878230497241,0.118725053966045,0.025436792522669,-0.011679664254189,0.008206135593355,-0.114502042531967,0.065555237233639,-0.013476876541972,-0.037143908441067) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.020505171269178,-0.027485974133015,-0.115170657634735,-0.011431469582021,-0.000853287172504,-0.024230811744928,0.094308510422707,0.043536763638258,0.013693809509277,-0.019469842314720,-0.134199187159538,-0.039594579488039,0.030434368178248,-0.082254506647587,0.090311594307423,-0.003142722649500) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.133346095681190,0.004142981953919,-0.041198045015335,-0.083127513527870,0.171012073755264,0.006867168005556,-0.119372107088566,0.247176289558411,0.123196929693222,-0.045338474214077,0.050341591238976,0.134708851575851,0.003167634597048,-0.062383543699980,0.095048062503338,0.189310044050217) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.091420426964760,0.019514052197337,-0.032976936548948,0.024012355133891,-0.026406900957227,-0.066929414868355,-0.108109310269356,0.123971723020077,0.112592749297619,-0.019539643079042,-0.081339187920094,-0.115553349256516,0.038733646273613,-0.017410105094314,-0.029065027832985,-0.052346084266901) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.200872346758842,-0.076882012188435,0.314920693635941,-0.170694753527641,-0.140078485012054,-0.067056767642498,-0.086276367306709,0.206773698329926,0.076373033225536,0.185571923851967,0.031131433323026,0.264294654130936,-0.137524574995041,-0.025367736816406,0.030386066064239,-0.147582381963730) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.143677368760109,0.264684259891510,-0.302792429924011,0.022238079458475,0.122156605124474,-0.179223626852036,-0.021846426650882,-0.203653588891029,0.315650999546051,0.448976725339890,0.180906385183334,0.007191722281277,0.000956820440479,0.087625667452812,0.024343442171812,0.123152442276478) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.169307589530945,-0.159688368439674,-0.062843114137650,-0.011714403517544,-0.400093436241150,-0.084225490689278,0.123751312494278,0.168083220720291,0.095108844339848,-0.047085657715797,0.065288610756397,0.013460299000144,0.139533549547195,0.024510517716408,-0.078514665365219,0.007447318173945) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.374612092971802,-0.201748862862587,-0.161343351006508,0.077736489474773,-0.003688472788781,0.089359916746616,0.037264641374350,-0.096736490726471,0.095169670879841,-0.010453763417900,0.120430640876293,-0.005004764534533,-0.299681186676025,0.024581501260400,-0.140240654349327,-0.028869576752186) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.415618836879730,-0.299954146146774,-0.056481774896383,-0.171957805752754,-0.063627474009991,-0.002593526616693,0.130922198295593,0.007802551146597,-0.027337521314621,-0.014093175530434,0.086278080940247,0.163853526115417,0.298501431941986,0.055424731224775,-0.037898261100054,0.032098527997732) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.135915964841843,-0.074233561754227,0.103951618075371,0.114706628024578,0.126320153474808,0.138872340321541,-0.112750545144081,0.046325724571943,0.049082875251770,-0.077297292649746,0.033061604946852,0.041085291653872,-0.133440881967545,-0.214009389281273,-0.097382374107838,-0.157661303877831) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.259015560150146,0.008440682664514,-0.128972515463829,-0.060987632721663) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL4
//!DESC [AiUpscale_HQ_3x_Photo] mapping 5_4

vec4 hook()
{
vec4 res = vec4(-0.095073543488979,0.027905641123652,-0.028948357328773,0.025761673226953);
res += mat4(0.235738664865494,0.012343907728791,0.076468579471111,-0.110851898789406,0.133548572659492,-0.063052579760551,0.006418817676604,0.029786307364702,-0.087073951959610,0.061214435845613,0.054772213101387,0.011943480931222,0.022074308246374,0.018797976896167,0.064476966857910,0.104075610637665) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.077761299908161,-0.244946181774139,-0.101063929498196,-0.002290201839060,0.005975543055683,0.048692852258682,-0.019946439191699,0.023226549848914,-0.291738569736481,0.028140209615231,-0.173073470592499,0.153451785445213,-0.014212084934115,0.110412843525410,-0.226611346006393,-0.144108623266220) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.030348533764482,-0.013312854804099,0.001565001206473,0.007734793238342,-0.085370242595673,0.008631418459117,-0.141531407833099,-0.280100256204605,-0.164436414837837,0.097328707575798,0.152721062302589,-0.019385045394301,0.024498892948031,0.042539913207293,-0.062324974685907,-0.137031286954880) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.031069586053491,0.115107908844948,-0.000380035344278,0.111587688326836,0.040860965847969,0.051850482821465,-0.134182795882225,-0.116999007761478,0.122055232524872,0.078389532864094,0.144637793302536,-0.109731853008270,-0.039681117981672,0.019850037992001,0.061541136354208,0.015063730068505) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.194609180092812,0.359975457191467,-0.032183606177568,0.054405890405178,0.027541216462851,-0.043409146368504,-0.009207775816321,0.231884360313416,0.063417486846447,0.064299277961254,-0.066149845719337,0.005137494299561,-0.137925788760185,0.073865719139576,-0.034209065139294,-0.165965989232063) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.000218739776756,0.068604782223701,0.010922468267381,-0.020566144958138,-0.217451676726341,-0.070451147854328,-0.127449154853821,-0.002549564931542,-0.166732951998711,0.041372802108526,-0.022380756214261,0.305365175008774,0.003854715265334,-0.020474450662732,-0.253393530845642,0.045614726841450) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.032659213989973,-0.023186119273305,0.129603534936905,0.071986839175224,0.048664022237062,0.057876143604517,0.161260738968849,-0.204182401299477,0.241144970059395,0.092893071472645,0.058315861970186,0.058839969336987,0.146120741963387,0.006931856274605,0.029562445357442,-0.051464471966028) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.121250085532665,-0.049423884600401,-0.015794811770320,-0.169274345040321,0.053851675242186,-0.138835117220879,0.288618028163910,0.193876117467880,0.008518717251718,-0.013269825838506,-0.124815165996552,-0.400366216897964,0.108731165528297,-0.186272293329239,-0.102092377841473,0.178637623786926) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.020239990204573,-0.018361667171121,0.074714429676533,-0.014244871214032,-0.040552496910095,-0.201272740960121,-0.089756079018116,-0.030639288946986,0.045221637934446,-0.033248394727707,-0.024897521361709,-0.235050603747368,-0.070020899176598,0.056254096329212,-0.004460935480893,-0.072470538318157) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.067555814981461,-0.060814596712589,0.008723939768970,-0.034693770110607,0.031078068539500,0.007260368671268,-0.189756467938423,0.049885198473930,0.200310513377190,-0.075450338423252,-0.009392211213708,-0.040272209793329,0.107485771179199,-0.073065757751465,-0.179947435855865,-0.051003105938435) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.008344640024006,-0.071576043963432,-0.083323463797569,0.011406666599214,0.057699244469404,-0.019645461812615,0.154561087489128,-0.196529000997543,0.168383225798607,0.035048827528954,0.006949169095606,-0.061696138232946,0.041671615093946,-0.125813677906990,-0.149043649435043,0.098132111132145) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.154007792472839,-0.030114993453026,0.049276139587164,-0.034736014902592,-0.064135730266571,0.038774117827415,-0.276514858007431,-0.126644089818001,0.184669926762581,-0.027479670941830,0.002892001997679,-0.127483800053596,0.028931319713593,0.088209770619869,0.009058406576514,0.247663751244545) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.006388101726770,-0.072366133332253,0.120859302580357,-0.050889037549496,-0.040361743420362,0.059479746967554,0.065260104835033,-0.088167823851109,0.115473188459873,0.140695944428444,0.130619034171104,-0.148620262742043,-0.019976226612926,-0.088155373930931,0.027595715597272,0.032224539667368) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.062610223889351,-0.162686988711357,0.089473381638527,0.005189587362111,0.235197082161903,-0.078376047313213,0.219575643539429,0.312290042638779,-0.121461004018784,-0.333804458379745,0.060600396245718,0.141429930925369,-0.105159901082516,0.055784549564123,0.034840084612370,-0.239297136664391) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.058190520852804,0.006991351488978,-0.201731562614441,0.065513879060745,-0.073157355189323,0.093693315982819,0.023869698867202,-0.002758510177955,0.129269823431969,-0.327487885951996,-0.010290487669408,0.111301973462105,0.043739214539528,-0.120648033916950,-0.052271883934736,0.149940729141235) * MODEL8_texOff(vec2(0,1));
res += mat4(0.010602705180645,-0.035873953253031,0.080178044736385,-0.044449206441641,0.083353541791439,0.035220090299845,-0.145665585994720,-0.008873500861228,0.009358301758766,0.003341704141349,-0.093392871320248,0.049241110682487,-0.017486972734332,-0.010648748837411,0.036191191524267,0.027842080220580) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.078187093138695,-0.097747489809990,0.184451028704643,-0.062812574207783,-0.092754974961281,-0.113810524344444,0.174376726150513,0.143719941377640,-0.041547484695911,-0.181703343987465,-0.048817511647940,-0.121891073882580,0.007161692716181,-0.084741525352001,-0.075709342956543,-0.107166327536106) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.094863094389439,-0.011069078929722,0.116551950573921,-0.040912445634604,-0.013254929333925,0.019883245229721,-0.127851769328117,-0.072039224207401,-0.088078990578651,0.058610424399376,0.037477709352970,-0.022295184433460,-0.141662999987602,-0.048545077443123,0.043233424425125,-0.407694220542908) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.228471353650093,-0.027820670977235,0.026149125769734,0.053179167211056,-0.094217434525490,-0.076865270733833,0.020419038832188,0.020906439051032,-0.202078253030777,0.035373363643885,0.084834150969982,-0.102602057158947,-0.013471806421876,0.029979916289449,-0.110426127910614,0.103359907865524) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.028769841417670,-0.026566747575998,0.224786624312401,-0.076856262981892,0.018483581021428,-0.032234262675047,0.211126744747162,-0.035888407379389,0.096571318805218,-0.075246676802635,0.008093801327050,-0.194113522768021,-0.110752969980240,-0.010597107000649,-0.008135147392750,0.129303872585297) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.055089477449656,0.031904000788927,-0.043435193598270,0.030888214707375,0.019920701161027,0.076500363647938,-0.085802495479584,0.063820891082287,0.090115763247013,-0.018846442922950,0.067683555185795,0.031799353659153,-0.154382929205894,0.006810240913182,-0.119615904986858,-0.121057309210300) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.198853313922882,-0.076178021728992,-0.072192221879959,0.148475646972656,-0.083830013871193,-0.013811765238643,-0.061888787895441,-0.034399401396513,-0.211859121918678,-0.000730660976842,0.137136861681938,0.001920310314745,0.242712557315826,0.002217192435637,0.079628951847553,-0.072629153728485) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.106306850910187,0.047268692404032,-0.012176637537777,0.328115999698639,0.257548928260803,-0.076882049441338,-0.041771136224270,0.195007845759392,-0.202884465456009,-0.010818459093571,-0.165093839168549,0.166280403733253,0.116323247551918,-0.080281794071198,-0.104161657392979,0.071841463446617) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.059039216488600,-0.042151272296906,-0.010848356410861,-0.095857240259647,0.003195845521986,-0.031029263511300,-0.122021175920963,-0.159683763980865,-0.053349003195763,-0.061793707311153,-0.072711370885372,0.146631896495819,-0.124626465141773,-0.050117578357458,-0.237706631422043,-0.158358842134476) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.028801491484046,0.040153451263905,0.021627277135849,-0.060262389481068,-0.018329782411456,0.041682872921228,-0.108380921185017,-0.067997619509697,0.027060067281127,0.046134162694216,-0.057612784206867,0.130426600575447,-0.101587802171707,-0.041746586561203,-0.119716838002205,0.019478050991893) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.049247514456511,0.044520441442728,0.148891776800156,-0.064261950552464,-0.051610175520182,-0.000153750341269,0.111608736217022,0.006985518150032,-0.050851907581091,-0.018391804769635,-0.028577245771885,0.054075434803963,0.022223133593798,-0.002800541231409,0.132811218500137,0.065588727593422) * MODEL9_texOff(vec2(1,0));
res += mat4(0.001183056039736,-0.002025295980275,-0.133152857422829,-0.031728271394968,0.006129063665867,-0.003153722267598,-0.111900180578232,-0.053755000233650,-0.083155654370785,0.054324768483639,0.092048034071922,-0.066962987184525,-0.074074417352676,0.074613809585571,0.060787327587605,-0.057249579578638) * MODEL9_texOff(vec2(1,1));
res += mat4(0.225104406476021,-0.142734169960022,0.435480296611786,-0.056862790137529,-0.136593922972679,-0.002486635465175,-0.119421139359474,0.124772779643536,0.105903230607510,0.001531470101327,-0.079836010932922,0.096658200025558,-0.133138343691826,0.006050748750567,0.097569480538368,0.111337095499039) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.010570555925369,0.013968974351883,0.014720425941050,-0.146947711706161,0.063015706837177,-0.020599326118827,0.102637089788914,-0.040549974888563,-0.072701640427113,-0.056567408144474,0.060904409736395,-0.132262974977493,-0.299749583005905,0.226084694266319,0.049821708351374,0.199432969093323) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.255402237176895,0.030825654044747,0.206798657774925,0.072290435433388,-0.092193037271500,0.065470218658447,-0.115968771278858,0.028099901974201,-0.041844207793474,-0.010954968631268,-0.136557057499886,-0.113659515976906,-0.028929490596056,-0.019611410796642,0.017846943810582,-0.098475575447083) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.052045762538910,-0.163892015814781,0.053183533251286,0.036438707262278,-0.202238813042641,0.086481057107449,-0.047123175114393,-0.173582658171654,-0.107315652072430,-0.021862978115678,0.112335942685604,0.168273791670799,0.235013708472252,0.019451167434454,-0.097125232219696,0.102304972708225) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.009615477174520,0.094504624605179,-0.042187832295895,0.054004386067390,0.075640730559826,0.549496829509735,0.174832612276077,-0.067585438489914,-0.112338677048683,-0.056423205882311,-0.078501261770725,0.266404181718826,-0.170930847525597,-0.045963369309902,0.002339479746297,0.095863290131092) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.193123534321785,-0.026367528364062,0.069646537303925,0.111239053308964,-0.066536694765091,-0.173152267932892,-0.145512700080872,-0.047730870544910,-0.061915047466755,-0.187128156423569,-0.038381531834602,0.146140873432159,0.069754712283611,-0.052484095096588,-0.139473289251328,0.011558088473976) * MODEL10_texOff(vec2(0,1));
res += mat4(0.050968844443560,0.011559434235096,-0.021593779325485,-0.198549509048462,0.193362325429916,-0.005970856174827,0.060466662049294,0.006549024488777,0.000830348057207,-0.028813291341066,0.179549917578697,-0.136059522628784,-0.018040182068944,0.021580656990409,-0.012740066275001,-0.305316716432571) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.048555593937635,0.046917878091335,-0.018040029332042,-0.114010885357857,-0.007252910174429,-0.372917950153351,0.017310433089733,0.234725385904312,0.007362775038928,-0.000374473776901,0.015354339964688,0.041062604635954,0.060387901961803,0.060779169201851,0.136124998331070,-0.128389254212379) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.072273284196854,0.062981948256493,0.283955246210098,-0.143465384840965,0.124436870217323,-0.126921370625496,-0.102520935237408,-0.077955096960068,0.051622774451971,0.031159579753876,-0.022699780762196,-0.010699153877795,0.022790003567934,-0.103229075670242,0.019685484468937,0.185057103633881) * MODEL10_texOff(vec2(1,1));
res += mat4(0.036250498145819,-0.098484195768833,-0.075636677443981,0.080414921045303,0.219552382826805,-0.211115822196007,0.307166874408722,0.009158699773252,0.103646211326122,-0.003319620154798,0.049899902194738,-0.149510592222214,0.063924893736839,-0.001399704837240,-0.003555932315066,-0.252825409173965) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.176995038986206,-0.107349023222923,0.002083680359647,-0.077131576836109,0.174001812934875,-0.169613525271416,-0.035056743770838,-0.027086053043604,0.341700941324234,0.055662415921688,-0.010108071379364,-0.057480379939079,0.253634124994278,-0.723264753818512,-0.147510409355164,-0.065171360969543) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.038513205945492,0.036878652870655,-0.125501975417137,-0.108595445752144,0.048652071505785,-0.019653959199786,-0.098468929529190,-0.018345903605223,-0.020721217617393,-0.010120926424861,-0.155532374978065,0.010366175323725,-0.142067939043045,0.096053056418896,0.025986930355430,0.090530902147293) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.117206774652004,0.018176624551415,-0.154073819518089,0.103408560156822,-0.149815097451210,-0.341677397489548,-0.062239021062851,0.288380175828934,-0.015870787203312,-0.000659009441733,-0.007582318969071,0.120284035801888,-0.119537785649300,0.064678661525249,0.204143226146698,0.086357980966568) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.146274492144585,-0.106149680912495,-0.005425990559161,-0.013943511061370,-0.076773092150688,0.036975346505642,-0.148177221417427,-0.195948392152786,-0.300422370433807,0.000433491106378,-0.108756117522717,-0.099784158170223,0.240400418639183,0.537451386451721,-0.017700528725982,-0.214734911918640) * MODEL11_texOff(vec2(0,0));
res += mat4(0.049240544438362,0.070514187216759,0.098183870315552,-0.078060574829578,0.196437835693359,-0.015484493225813,-0.097692705690861,0.062333591282368,-0.042427092790604,-0.080553926527500,0.050592347979546,-0.037286166101694,-0.022501356899738,-0.169388249516487,0.160073533654213,-0.211833953857422) * MODEL11_texOff(vec2(0,1));
res += mat4(0.054774254560471,0.019999803975224,-0.017527734860778,0.162159994244576,-0.073247916996479,-0.011926293373108,0.397028595209122,-0.164129570126534,0.110689163208008,0.015779765322804,-0.035611271858215,0.041977941989899,-0.223584368824959,-0.053356807678938,-0.011217776685953,0.292559236288071) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.083597421646118,-0.008247232995927,-0.005845835432410,0.044484857469797,0.030804799869657,-0.029752194881439,0.011571131646633,0.152959182858467,0.165860548615456,0.006162283010781,-0.241031929850578,0.052770119160414,-0.021582148969173,-0.165895596146584,-0.427972108125687,0.107601456344128) * MODEL11_texOff(vec2(1,0));
res += mat4(0.071889691054821,-0.008642897009850,-0.155608251690865,0.166937902569771,0.068558648228645,0.024040034040809,-0.054165136069059,-0.141864106059074,-0.062207560986280,-0.033195085823536,-0.061089925467968,-0.084131971001625,-0.027421480044723,-0.030331529676914,0.046842608600855,-0.205376774072647) * MODEL11_texOff(vec2(1,1));
res += mat4(0.069271944463253,-0.010263524018228,-0.140764221549034,-0.009926795959473,0.033884327858686,0.062436521053314,0.137102022767067,0.004176917020231,-0.015555448830128,0.091897636651993,-0.177859395742416,-0.029064873233438,-0.169412016868591,-0.001086177187972,-0.086877584457397,0.044520251452923) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.208379313349724,-0.116401895880699,-0.155184775590897,0.053718846291304,0.196227937936783,-0.208278611302376,0.143816664814949,0.091636642813683,-0.059478398412466,0.101750865578651,0.081113129854202,-0.135575920343399,-0.245580315589905,-0.032413929700851,-0.103654585778713,-0.161229133605957) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.039358984678984,0.009092322550714,0.080985240638256,0.044062610715628,0.012579895555973,0.107177399098873,-0.122862093150616,0.004662869498134,-0.014163782820106,0.024056082591414,0.010297099128366,0.052733514457941,-0.140388399362564,-0.009104154072702,-0.036384683102369,-0.073740988969803) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.165050685405731,0.034582350403070,-0.131506353616714,-0.122789919376373,-0.088243171572685,-0.118392437696457,-0.021014710888267,0.097700439393520,-0.131188064813614,0.129371851682663,0.041277479380369,-0.010865126736462,0.197347536683083,0.006871507968754,0.192323908209801,-0.103866010904312) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.139218658208847,0.034677013754845,-0.112919881939888,-0.251308798789978,-0.304982125759125,0.196033418178558,-0.031271576881409,-0.072480805218220,-0.101852871477604,0.349530458450317,0.104180678725243,-0.161784335970879,0.119482323527336,-0.056035384535789,0.116113603115082,0.144690170884132) * MODEL12_texOff(vec2(0,0));
res += mat4(0.044605191797018,-0.008591445162892,-0.007816455326974,0.109051696956158,-0.043739181011915,-0.074030272662640,0.157596319913864,0.104017846286297,0.108485370874405,-0.013175108470023,-0.025801127776504,0.145507499575615,0.027972256764770,-0.050199475139380,-0.091838769614697,-0.187598168849945) * MODEL12_texOff(vec2(0,1));
res += mat4(0.060872830450535,0.067200481891632,-0.090173207223415,-0.099171563982964,-0.053082413971424,-0.084505662322044,-0.113252654671669,-0.200809448957443,0.058818321675062,0.138818338513374,-0.062891632318497,0.008952987380326,-0.041128352284431,0.014399154111743,-0.090060383081436,0.210465803742409) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.022682130336761,0.083536088466644,-0.048949975520372,-0.185983493924141,-0.046311963349581,-0.093359768390656,-0.005953064188361,-0.015117358416319,0.127934485673904,0.144235283136368,-0.177012741565704,0.074239633977413,-0.080044180154800,0.014028239063919,0.169550597667694,-0.390878081321716) * MODEL12_texOff(vec2(1,0));
res += mat4(0.039067622274160,-0.026129240170121,0.104327514767647,0.075872682034969,-0.074690915644169,-0.140845999121666,0.037884738296270,0.223371207714081,0.010751475580037,0.029723262414336,0.052377656102180,-0.088709652423859,-0.092422239482403,-0.064831212162971,-0.029644163325429,-0.242858067154884) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.390302300453186,0.931470274925232,-0.037712279707193,-0.372560262680054) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL5
//!DESC [AiUpscale_HQ_3x_Photo] mapping 5_5

vec4 hook()
{
vec4 res = vec4(-0.030028527602553,-0.016763424500823,-0.045356951653957,-0.097172163426876);
res += mat4(-0.175617516040802,0.019275883212686,-0.004878435283899,-0.069331184029579,0.067072264850140,-0.076394498348236,-0.092136092483997,0.032940309494734,0.000020384839445,0.070528574287891,-0.052804637700319,0.237238004803658,0.048466622829437,-0.131960421800613,-0.022048570215702,0.090198256075382) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.213603600859642,0.213213384151459,-0.022068094462156,-0.172315642237663,-0.070709384977818,0.115434370934963,0.107018865644932,0.034964617341757,0.296260982751846,-0.041753008961678,0.033867243677378,0.030097318813205,0.017449824139476,-0.013745347037911,0.016182791441679,0.086023718118668) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.008330397307873,-0.046038366854191,0.006404033396393,-0.073220543563366,-0.155507490038872,0.115612566471100,0.014940245077014,-0.142887651920319,0.020703522488475,0.062400687485933,0.042743917554617,0.065719299018383,0.064781963825226,0.011310867965221,-0.038021095097065,0.174788638949394) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.040077712386847,0.016141204163432,0.016115613281727,0.018549900501966,-0.058241695165634,-0.155959710478783,0.032786730676889,0.036815930157900,-0.161037489771843,0.083303861320019,-0.159346893429756,0.055577535182238,0.052345797419548,-0.171925663948059,-0.143628016114235,0.021824987605214) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.173701614141464,0.222417786717415,-0.098923370242119,0.066425435245037,-0.095582708716393,-0.151031464338303,0.016528232023120,0.039463758468628,-0.068685390055180,0.002308013150468,-0.062568105757236,-0.129038915038109,0.041094202548265,0.102840185165405,0.029572125524282,-0.317290037870407) * MODEL7_texOff(vec2(0,0));
res += mat4(0.096480049192905,-0.040034197270870,0.027058936655521,0.081244722008705,0.014094880782068,0.123411007225513,0.069910727441311,-0.346957832574844,-0.031302466988564,0.000113265065011,0.212527051568031,-0.019647423177958,0.042459946125746,0.017558902502060,0.054929848760366,0.129162803292274) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.021234046667814,0.033244691789150,-0.002625816268846,-0.089451178908348,-0.013034493662417,-0.116937659680843,0.067576177418232,0.126275643706322,-0.031446687877178,0.025838436558843,-0.048441626131535,-0.178232684731483,-0.050474133342505,0.161722704768181,0.015026727691293,0.199306145310402) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.082194656133652,0.043354529887438,0.047407694160938,0.073849432170391,-0.022290403023362,-0.037681050598621,0.034924872219563,-0.041263401508331,0.048576381057501,0.063146986067295,-0.076572783291340,-0.268205940723419,-0.193980321288109,-0.053590446710587,0.139333918690681,0.089059829711914) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.049701664596796,-0.017811181023717,0.051628474146128,0.072649694979191,-0.175631374120712,0.052362643182278,0.115310370922089,-0.043724860996008,-0.154465153813362,-0.084071740508080,0.055851705372334,0.136098265647888,-0.095865324139595,-0.019062818959355,0.094190992414951,-0.007214907091111) * MODEL7_texOff(vec2(1,1));
res += mat4(0.144454896450043,0.039763469249010,-0.016948916018009,0.100964501500130,-0.080558590590954,-0.002524430165067,0.114275582134724,0.193339332938194,-0.111194945871830,0.073182232677937,0.059572700411081,-0.014897121116519,-0.076642811298370,0.010180331766605,-0.024304583668709,0.130068808794022) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.211134418845177,0.126590430736542,-0.015616222284734,0.068032391369343,0.214449837803841,0.043250460177660,0.026605989784002,0.151139557361603,-0.071793183684349,-0.024315180256963,0.186753436923027,-0.056877851486206,0.178022190928459,-0.080564238131046,-0.272865504026413,-0.086691021919250) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.053774189203978,-0.020064745098352,-0.110024832189083,-0.191012993454933,-0.217643082141876,-0.010988841764629,0.122083440423012,0.402026206254959,0.201370149850845,0.065493665635586,-0.093539766967297,0.029620593413711,-0.026901597157121,0.003770740935579,0.018745349720120,0.058130830526352) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.028058955445886,0.060443364083767,0.033756941556931,0.074874237179756,0.208749160170555,0.081816211342812,-0.092865541577339,-0.123287670314312,-0.019626490771770,0.198860749602318,0.135224476456642,-0.154681071639061,-0.177268877625465,-0.168394714593887,0.023252492770553,0.150346547365189) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.005919635295868,0.196680203080177,0.251892715692520,0.183913543820381,0.057355526834726,-0.025284539908171,-0.164456963539124,-0.236029699444771,-0.072013139724731,-0.206220045685768,0.196667581796646,-0.257895678281784,0.102566659450531,0.281560063362122,-0.049161072820425,-0.153480693697929) * MODEL8_texOff(vec2(0,0));
res += mat4(0.019146157428622,-0.075021781027317,0.147380754351616,0.227604061365128,-0.155685275793076,-0.156065329909325,0.082379348576069,0.073673531413078,0.105433940887451,0.033179614692926,-0.312207937240601,0.102644033730030,-0.181595876812935,-0.077243402600288,0.095495939254761,0.072182856500149) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.176325157284737,0.059148278087378,0.131179481744766,-0.072124265134335,0.064351528882980,0.056841347366571,-0.023648835718632,-0.166520193219185,0.091622717678547,0.071343459188938,0.017177876085043,-0.055580660700798,-0.061530295759439,-0.096824221313000,0.060432113707066,0.192156404256821) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.089202553033829,-0.030219880864024,0.186109587550163,0.108464203774929,0.113012894988060,0.087077826261520,-0.106789052486420,-0.230269134044647,0.092470005154610,0.003790686372668,-0.177145302295685,-0.003271840978414,0.147940203547478,-0.027895560488105,0.041327562183142,0.151665925979614) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.125245437026024,-0.154264658689499,0.235668554902077,-0.049100141972303,-0.089133381843567,-0.032227952033281,-0.041828185319901,-0.170858591794968,-0.037608020007610,0.083002619445324,-0.123507410287857,0.123767979443073,-0.071667909622192,-0.028872175142169,0.072998270392418,-0.081137649714947) * MODEL8_texOff(vec2(1,1));
res += mat4(0.045964512974024,0.097565442323685,-0.048863526433706,0.131813451647758,0.015680087730289,0.031141076236963,-0.083721332252026,-0.032467599958181,0.066701151430607,0.046937972307205,0.282100886106491,-0.086126819252968,0.145791023969650,-0.009685543365777,-0.078143298625946,0.180957004427910) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.034304942935705,-0.004956672899425,-0.029216654598713,0.169027179479599,0.145012214779854,-0.058276228606701,-0.105969771742821,0.202737599611282,-0.143229112029076,0.021000999957323,-0.094289734959602,-0.092131555080414,0.194049909710884,-0.005177558399737,0.026331774890423,0.233426883816719) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.151882573962212,0.029528634622693,-0.033711906522512,0.116219602525234,-0.139378979802132,-0.043236825615168,0.059220924973488,-0.127246066927910,-0.077542118728161,0.053107041865587,-0.016775432974100,-0.170824125409126,0.140589758753777,-0.013096138834953,0.017213717103004,0.148537635803223) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.207698121666908,-0.321662783622742,-0.083337977528572,-0.071721434593201,-0.149772703647614,0.330519258975983,0.053774043917656,0.299814581871033,0.152506887912750,-0.121290951967239,0.102457471191883,-0.020807702094316,0.157268911600113,0.131810814142227,-0.135260909795761,-0.140600040555000) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.186060324311256,0.082139290869236,0.119746997952461,0.238189131021500,-0.156106308102608,-0.289779514074326,-0.154982268810272,0.156411066651344,0.073137782514095,0.031956676393747,0.140833228826523,-0.057605549693108,-0.222656726837158,0.147392064332962,-0.119928196072578,-0.408856779336929) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.224725767970085,-0.046479314565659,0.070114783942699,0.052908230572939,0.053027577698231,0.007430516649038,-0.096070200204849,-0.075843587517738,-0.029118467122316,0.054210614413023,-0.091237120330334,0.038027212023735,-0.077007897198200,-0.134728506207466,0.126298278570175,-0.151816964149475) * MODEL9_texOff(vec2(0,1));
res += mat4(0.087109789252281,0.041467875242233,0.031357627362013,-0.170955687761307,-0.125170275568962,0.098961211740971,0.018530646339059,-0.156634256243706,0.029291821643710,0.061327960342169,-0.084395125508308,-0.099269211292267,0.064874619245529,-0.047586224973202,-0.084597207605839,-0.105145409703255) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.049185089766979,-0.074757732450962,0.100948676466942,-0.065927088260651,-0.007425426505506,0.020778842270374,0.148020535707474,-0.131060913205147,-0.088757179677486,-0.065221324563026,-0.086552694439888,0.006569868419319,0.184278950095177,-0.114488147199154,-0.017418889328837,-0.018378201872110) * MODEL9_texOff(vec2(1,0));
res += mat4(0.018530312925577,-0.030385065823793,-0.040017139166594,-0.075852118432522,-0.057887621223927,-0.059160903096199,-0.047279484570026,-0.181619971990585,0.030853372067213,-0.070430807769299,-0.080199062824249,0.016487304121256,0.195336163043976,-0.004636299796402,0.016606191173196,0.077944539487362) * MODEL9_texOff(vec2(1,1));
res += mat4(0.259405463933945,-0.029743995517492,-0.062559530138969,-0.321357071399689,0.048547420650721,-0.094403564929962,0.234669402241707,-0.015275365673006,0.002061300678179,-0.097487144172192,-0.035117458552122,-0.233504146337509,0.054788291454315,0.027175860479474,0.031783178448677,-0.037913069128990) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.095157712697983,0.062114618718624,0.048950362950563,-0.159598976373672,-0.125605866312981,0.120063632726669,-0.100015215575695,-0.045092150568962,0.129175141453743,-0.019541816785932,-0.316503643989563,-0.124784268438816,0.048216097056866,-0.104849241673946,0.076420277357101,0.186809509992599) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.114343650639057,0.073701202869415,-0.066471181809902,-0.034554563462734,-0.180907249450684,-0.049364082515240,0.052894849330187,0.110273361206055,0.132502764463425,0.056609202176332,0.180798813700676,-0.219144299626350,-0.001669449498877,-0.059365708380938,0.029288340359926,-0.040343187749386) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.072454482316971,-0.086904861032963,-0.145730346441269,0.173030078411102,-0.094287656247616,-0.003835506970063,-0.089786387979984,0.076474122703075,0.010490506887436,0.091894708573818,-0.039267674088478,-0.018805483356118,-0.015861999243498,-0.152805879712105,-0.167480438947678,0.225245550274849) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.045133776962757,-0.000274793157587,0.029746150597930,0.140524551272392,-0.058671541512012,0.287858903408051,-0.203615009784698,-0.220962598919868,0.123438589274883,0.104457736015320,-0.074653655290604,0.330632239580154,-0.205508068203926,-0.165360838174820,0.041342131793499,0.215260550379753) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.026945436373353,0.112276442348957,-0.035083021968603,0.251458942890167,-0.041719164699316,-0.154453709721565,0.118229605257511,-0.123574420809746,-0.015250490978360,0.075296893715858,0.172091454267502,-0.037700425833464,0.101858355104923,0.057223256677389,-0.185752183198929,-0.018176676705480) * MODEL10_texOff(vec2(0,1));
res += mat4(0.007439616136253,0.026182254776359,-0.235498234629631,-0.107442975044250,0.133381426334381,-0.178799018263817,0.107112310826778,-0.009785606525838,-0.015753706917167,-0.052877664566040,0.007002198137343,-0.076163962483406,0.074218735098839,-0.005958118475974,0.128836125135422,-0.112250655889511) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.193809762597084,-0.115076862275600,-0.093786746263504,0.049091681838036,-0.143436685204506,0.165044620633125,0.143063470721245,-0.007339106407017,-0.030705807730556,0.070937365293503,-0.039558921009302,-0.042200528085232,-0.107518203556538,-0.038337845355272,0.114504233002663,-0.204337984323502) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.082559354603291,-0.015559012070298,-0.145099431276321,-0.033222582191229,0.025170283392072,-0.023775869980454,-0.074106685817242,0.029811792075634,-0.131624191999435,0.097890928387642,0.054374042898417,-0.106500357389450,-0.143942341208458,0.029722342267632,0.016877550631762,-0.162735074758530) * MODEL10_texOff(vec2(1,1));
res += mat4(0.033094327896833,-0.162790104746819,-0.106232725083828,0.006176624447107,0.070580966770649,-0.108934566378593,-0.203803360462189,-0.259746253490448,0.045870710164309,0.032701134681702,0.066454008221626,0.016741137951612,0.173883065581322,-0.133252277970314,-0.253723323345184,-0.116543076932430) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.175455421209335,0.003305562306195,-0.014941805973649,-0.015080718323588,0.114869050681591,-0.039285790175200,0.000836573191918,-0.322219222784042,-0.036118648946285,0.038693230599165,-0.096361167728901,0.102310582995415,0.381569653749466,0.104224778711796,-0.324458122253418,-0.248362019658089) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.087706260383129,-0.025610474869609,-0.237513601779938,0.152363196015358,0.139234289526939,-0.009773869067430,-0.032308235764503,0.059294424951077,0.095922581851482,0.035331539809704,-0.040845293551683,0.057411156594753,0.150620669126511,-0.005506212357432,0.187324881553650,-0.027728306129575) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.093129530549049,-0.518346786499023,-0.100934907793999,0.150269463658333,-0.116850271821022,-0.396409004926682,0.190417349338531,0.320705711841583,0.097170591354370,0.081272311508656,-0.203873798251152,-0.115384593605995,-0.256391078233719,-0.411168277263641,0.012431304901838,0.122515164315701) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.000665104249492,0.151015356183052,-0.072974778711796,-0.203095227479935,0.223820954561234,0.143178284168243,-0.041663795709610,0.081516765058041,-0.013690060935915,-0.051378972828388,-0.266836494207382,-0.142526015639305,0.083063974976540,0.481789320707321,0.110660105943680,0.075460925698280) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.061965487897396,0.034785918891430,0.072725735604763,0.086096435785294,-0.105073221027851,-0.024133974686265,-0.204119160771370,-0.179629027843475,0.006465617101640,-0.076149076223373,-0.064965784549713,-0.089669525623322,0.099676422774792,-0.002066269051284,0.137073174118996,-0.036432992666960) * MODEL11_texOff(vec2(0,1));
res += mat4(0.154716700315475,-0.215971171855927,-0.009709040634334,-0.020952405408025,-0.047707788646221,-0.117178693413734,-0.021564617753029,0.121391572058201,-0.128295347094536,-0.065000869333744,-0.007958609610796,-0.081764571368694,-0.051614828407764,-0.180665895342827,0.134426042437553,-0.003172345226631) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.152204900979996,0.138944745063782,-0.099323585629463,-0.193868249654770,0.150854736566544,0.026796223595738,0.080838695168495,-0.044013183563948,-0.056765157729387,-0.065078891813755,0.105096362531185,-0.057007681578398,-0.194961577653885,0.299483895301819,0.133322700858116,0.034160695970058) * MODEL11_texOff(vec2(1,0));
res += mat4(0.123470060527325,-0.010455368086696,-0.257671177387238,-0.112759046256542,-0.082609385251999,-0.049523442983627,-0.007510395254940,0.088183082640171,-0.070481382310390,-0.039756584912539,0.071550503373146,-0.002212280640379,0.044942539185286,-0.044766884297132,0.169313237071037,0.013526124879718) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.114574179053307,-0.144464522600174,0.237696945667267,0.030909990891814,-0.144978463649750,-0.125396370887756,-0.125949412584305,0.051740482449532,0.076266683638096,0.016542257741094,-0.059304319322109,-0.078328162431717,-0.005733004771173,-0.050259202718735,-0.065498575568199,-0.179211184382439) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.029307518154383,0.026157269254327,0.217844694852829,0.099921450018883,-0.120615266263485,-0.139417290687561,-0.258611440658569,-0.192992478609085,0.142281427979469,0.103330738842487,0.176424220204353,0.213143080472946,0.138169422745705,0.028747107833624,-0.157421141862869,-0.083368711173534) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.023690640926361,-0.004998026415706,0.060695536434650,0.065374463796616,0.208078861236572,0.130931556224823,0.099016547203064,0.137997388839722,0.020750790834427,-0.049059033393860,-0.067907437682152,-0.054057132452726,0.047457516193390,0.087353028357029,-0.049850348383188,-0.163068518042564) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.077136985957623,0.015878254547715,-0.030724450945854,-0.091303087770939,-0.197480306029320,-0.304074913263321,0.023631077259779,-0.045463334769011,-0.162636622786522,-0.033811669796705,-0.078166536986828,0.010701781138778,-0.102116867899895,-0.117962427437305,-0.141000896692276,-0.175092220306396) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.128832772374153,-0.066357955336571,-0.054371505975723,-0.159599065780640,-0.137566745281219,-0.027177112177014,0.086468465626240,0.203764915466309,-0.002149300649762,-0.057121150195599,-0.022740580141544,0.079678930342197,0.017671154811978,0.012626232579350,0.004780140705407,0.049499940127134) * MODEL12_texOff(vec2(0,0));
res += mat4(0.050477493554354,0.085888661444187,0.055565100163221,0.034478113055229,0.140507385134697,0.175633653998375,0.159472480416298,-0.049108382314444,0.062635324895382,-0.011042680591345,-0.043096922338009,-0.096859000623226,0.030399192124605,0.052631285041571,-0.099988080561161,-0.208675369620323) * MODEL12_texOff(vec2(0,1));
res += mat4(0.087890028953552,0.103230394423008,0.005854064133018,-0.083676852285862,0.064750403165817,0.036061160266399,0.088246434926987,-0.035888545215130,-0.095774568617344,-0.140113696455956,0.063190989196301,-0.062165819108486,-0.163053542375565,-0.006958105135709,-0.002452779794112,0.103286407887936) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.162258446216583,-0.007504510227591,-0.057693459093571,-0.005643598735332,-0.026746559888124,0.128715932369232,0.130409955978394,0.100245706737041,-0.045459110289812,0.124558366835117,0.109912365674973,0.145476788282394,0.174034029245377,-0.156888142228127,0.023731390014291,0.197836115956306) * MODEL12_texOff(vec2(1,0));
res += mat4(0.016313973814249,-0.025896798819304,-0.033505506813526,-0.249182984232903,0.091896019876003,0.128672927618027,0.090857446193695,-0.002676149364561,-0.057213842868805,-0.069338135421276,0.025163302198052,-0.026176204904914,0.162462666630745,0.008921215310693,-0.023185422644019,-0.118340551853180) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.424842357635498,-0.462603926658630,-0.009902054443955,0.330065280199051) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL6
//!DESC [AiUpscale_HQ_3x_Photo] mapping 5_6

vec4 hook()
{
vec4 res = vec4(-0.132585316896439,-0.081085428595543,-0.013954092748463,-0.370931267738342);
res += mat4(0.031664624810219,-0.016807388514280,0.084226347506046,0.062788605690002,-0.180642738938332,0.123477615416050,-0.132849171757698,0.014849150553346,-0.079334557056427,0.013157971203327,-0.031982306391001,-0.079330533742905,-0.023523336276412,0.027121299877763,0.008765330538154,-0.009451556019485) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.078555583953857,0.143758311867714,-0.237091958522797,-0.071905709803104,-0.093535721302032,-0.063938036561012,0.078057028353214,0.072024494409561,0.035396158695221,-0.002736899303272,-0.016095826402307,-0.082182615995407,-0.162356510758400,0.043755039572716,-0.162751957774162,0.218521431088448) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.089318737387657,-0.108231455087662,0.064141452312469,0.054688140749931,-0.003813016926870,0.028509154915810,-0.124637246131897,-0.058827534317970,0.098216123878956,-0.142942756414413,-0.064703233540058,-0.128026857972145,-0.035725239664316,-0.178952872753143,-0.093442127108574,0.154909223318100) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.087994486093521,0.062896780669689,0.008619357831776,0.244734972715378,0.026850560680032,-0.088693320751190,-0.050022885203362,-0.012899272143841,-0.198806554079056,0.094480417668819,-0.058744166046381,0.079290017485619,-0.021557422354817,0.113426841795444,-0.018333172425628,0.096158221364021) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.068191424012184,-0.088145978748798,0.113317139446735,0.283129513263702,-0.194183245301247,-0.195124313235283,0.037198893725872,0.114925652742386,0.145792528986931,-0.099253840744495,-0.103907778859138,-0.143057391047478,0.064186505973339,-0.086146309971809,-0.174466431140900,0.312701284885406) * MODEL7_texOff(vec2(0,0));
res += mat4(0.039157371968031,0.062490593641996,-0.154047563672066,0.032033767551184,-0.142272815108299,0.176492497324944,0.050082750618458,0.155606091022491,0.097134545445442,0.031678598374128,0.184197992086411,-0.271011352539063,-0.027657184749842,-0.053499702364206,-0.033156801015139,-0.050276584923267) * MODEL7_texOff(vec2(0,1));
res += mat4(0.077216289937496,-0.069206528365612,0.043154004961252,0.074424155056477,0.100582912564278,-0.181092977523804,-0.138532608747482,0.061010699719191,0.003656046465039,-0.025074889883399,0.123879119753838,0.000226191725233,0.068247206509113,0.155184224247932,-0.018965901806951,0.086169637739658) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.137310385704041,-0.142263442277908,-0.013624219223857,-0.129720315337181,-0.020060960203409,0.158490434288979,-0.065694108605385,0.043298605829477,-0.090800203382969,-0.154372006654739,-0.185621500015259,0.201556622982025,0.008921298198402,-0.162021264433861,0.162699878215790,-0.493800342082977) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.061315704137087,0.112141989171505,-0.071641229093075,-0.028438327834010,-0.044350255280733,-0.055586785078049,0.024855349212885,-0.161167547106743,0.008986983448267,0.009195941500366,-0.011428127065301,-0.144315645098686,0.117951028048992,-0.076114110648632,-0.270092040300369,0.207657948136330) * MODEL7_texOff(vec2(1,1));
res += mat4(0.072350688278675,0.136342048645020,-0.055805481970310,-0.011897628195584,0.063403733074665,0.052931308746338,-0.089525669813156,0.010253679938614,0.087112747132778,0.010968622751534,-0.036790810525417,-0.079392850399017,-0.133433640003204,-0.067305050790310,-0.169616177678108,0.069839775562286) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.063368782401085,0.064214706420898,-0.038122266530991,0.039653986692429,-0.151748225092888,0.043461244553328,-0.034095592796803,0.184470430016518,-0.089757025241852,0.057172141969204,0.009312603622675,-0.108485020697117,-0.013283552601933,0.071410924196243,-0.297666281461716,0.002836155472323) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.003664151066914,-0.012698496691883,0.075342409312725,-0.020444128662348,-0.028711849823594,0.249707460403442,0.084628075361252,0.175007909536362,-0.085272669792175,-0.018660500645638,-0.107608050107956,0.154285714030266,-0.021711487323046,0.267737060785294,0.025156268849969,0.124064847826958) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.138804972171783,-0.044656369835138,-0.083435200154781,0.021224746480584,0.096491016447544,-0.047330103814602,0.056939322501421,-0.121894769370556,0.344100475311279,-0.031039273366332,0.035143233835697,-0.102311268448830,-0.053126856684685,-0.005212597548962,0.198700383305550,0.084423847496510) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.081916846334934,0.144000038504601,-0.025279227644205,0.009917919524014,-0.116209037601948,0.122391693294048,-0.353107273578644,-0.037113070487976,-0.095911584794521,-0.094494186341763,-0.040689542889595,-0.191617965698242,0.256677627563477,-0.141992285847664,-0.277300447225571,0.105136603116989) * MODEL8_texOff(vec2(0,0));
res += mat4(0.007405133917928,-0.152580857276917,0.002791768405586,-0.184261575341225,0.171716675162315,-0.322574526071548,0.285301625728607,-0.086977168917656,-0.102814123034477,0.109147422015667,0.016970483586192,0.109196364879608,0.099145963788033,-0.195926755666733,0.088568635284901,-0.261147052049637) * MODEL8_texOff(vec2(0,1));
res += mat4(0.024468854069710,-0.106194779276848,0.116427011787891,-0.059693373739719,0.099134802818298,-0.170060649514198,0.217327684164047,-0.100448176264763,0.181422874331474,-0.029504241421819,-0.037780426442623,0.000554927450139,0.038338590413332,0.235418722033501,-0.104419365525246,0.034790348261595) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.120971493422985,0.036154445260763,0.022162176668644,-0.070435248315334,-0.296100646257401,0.565858244895935,-0.033053070306778,0.052475631237030,-0.013899824582040,-0.013087448664010,-0.001643790747039,0.030221000313759,-0.077046655118465,0.064031764864922,0.027266075834632,-0.052666585892439) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.012800245545805,-0.057971201837063,0.014431538991630,-0.048291601240635,0.079706735908985,-0.075135491788387,0.160704568028450,-0.025669086724520,-0.116645261645317,-0.008064257912338,-0.009763323701918,0.025731354951859,0.111901529133320,-0.221481189131737,-0.112893313169479,-0.180457398295403) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.171742990612984,-0.068854056298733,0.024446066468954,-0.034823730587959,0.070365503430367,0.107630930840969,-0.151919558644295,0.049601353704929,-0.029948791489005,-0.118236817419529,0.100931890308857,-0.038691915571690,0.113195918500423,0.058964740484953,-0.124839588999748,0.022478532046080) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.057466309517622,-0.092530213296413,-0.128762483596802,-0.091010443866253,0.099054731428623,-0.168737888336182,0.162953391671181,-0.081872276961803,0.008023301139474,-0.271063059568405,-0.194185554981232,-0.110974639654160,-0.063950918614864,0.083081409335136,0.066521815955639,-0.059909664094448) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.044181846082211,-0.018710372969508,0.005632638931274,0.004531498067081,-0.075783528387547,0.172624766826630,-0.192215010523796,0.003491704585031,0.107612505555153,-0.074588768184185,-0.112152718007565,0.094630144536495,-0.089585393667221,-0.112015970051289,-0.027366718277335,-0.104555428028107) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.596744000911713,0.107604660093784,0.042782649397850,-0.210284516215324,0.247130379080772,-0.134935826063156,-0.269796043634415,-0.180275648832321,-0.045072507113218,-0.375305503606796,0.002877352060750,-0.085428647696972,0.355287760496140,0.106166802346706,-0.334678322076797,0.226652204990387) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.063492193818092,0.221664890646935,-0.047540459781885,-0.024859057739377,0.092891171574593,0.126600489020348,0.079373896121979,-0.351235091686249,0.024564178660512,0.003399723209441,0.053133342415094,-0.102859154343605,-0.139204770326614,-0.274086713790894,0.144534885883331,0.107724882662296) * MODEL9_texOff(vec2(0,0));
res += mat4(0.172498390078545,-0.228893473744392,-0.066036187112331,-0.087773256003857,-0.319966375827789,0.127210631966591,0.061412584036589,0.341679155826569,-0.126552537083626,0.022913981229067,0.060026831924915,0.051311921328306,-0.055893886834383,-0.096084140241146,-0.025723075494170,-0.082337386906147) * MODEL9_texOff(vec2(0,1));
res += mat4(0.104178197681904,0.148869410157204,-0.163558900356293,0.009589021094143,0.023714266717434,-0.164478078484535,0.139589488506317,-0.270958095788956,-0.084228955209255,0.035929318517447,-0.146665275096893,0.138874098658562,0.067388236522675,-0.180041447281837,0.042475275695324,0.017709627747536) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.066649697721004,0.263918399810791,0.212774798274040,0.035101592540741,-0.033727489411831,0.155840918421745,-0.137830749154091,-0.036032617092133,-0.120254613459110,-0.016706427559257,0.031220177188516,0.045664738863707,0.067931622266769,-0.140550851821899,0.163287296891212,0.198513761162758) * MODEL9_texOff(vec2(1,0));
res += mat4(0.039528325200081,-0.126245170831680,-0.127209737896919,-0.029156085103750,-0.072947330772877,-0.082471124827862,-0.047306377440691,0.054744217544794,0.069269366562366,-0.099504359066486,0.088547654449940,0.094561740756035,0.285104423761368,-0.023655746132135,-0.184031784534454,0.117711991071701) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.192986428737640,0.091673068702221,0.297707647085190,0.016313951462507,0.065346203744411,0.057693794369698,-0.108922138810158,-0.062281176447868,-0.248943001031876,-0.023169750347733,0.294603943824768,0.025202170014381,-0.175567775964737,0.124983333051205,0.090438127517700,-0.125305950641632) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.357786864042282,0.003277127398178,-0.206876158714294,-0.146917030215263,0.064082995057106,-0.006772104650736,0.037113577127457,0.005590830929577,0.239130064845085,0.025972507894039,0.003618298331276,0.020205203443766,0.019164735451341,0.077552162110806,0.168928489089012,0.011923735961318) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.028036646544933,-0.048374805599451,0.091968558728695,-0.104306846857071,0.058697596192360,-0.179542705416679,0.022655609995127,0.046844508498907,0.057570584118366,-0.034034136682749,-0.123871788382530,-0.075049676001072,-0.089342452585697,0.040592070668936,-0.135033160448074,0.101253405213356) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.131057158112526,0.041117243468761,0.050249624997377,-0.030994268134236,-0.009487212635577,-0.088404476642609,-0.035026095807552,0.045233603566885,-0.439944058656693,0.193528518080711,-0.145707845687866,0.015459073707461,-0.090036913752556,0.049415107816458,-0.137190073728561,-0.176169708371162) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.110139496624470,-0.134073585271835,0.025911755859852,-0.156975015997887,0.130766376852989,0.000144559686305,0.229845717549324,0.186246246099472,-0.080099999904633,0.119481883943081,0.180540248751640,-0.046729039400816,0.076232112944126,-0.190714731812477,-0.017320249229670,-0.087269313633442) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.028875900432467,0.037451636046171,0.012343799695373,0.003754136152565,0.034572638571262,-0.105516724288464,-0.068744465708733,-0.077716723084450,-0.053141817450523,0.075617983937263,-0.081195518374443,-0.062690690159798,-0.157290056347847,0.121798738837242,-0.054713446646929,0.265561193227768) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.049846991896629,0.126512214541435,0.013185358606279,0.021142613142729,0.037867154926062,-0.014849204570055,-0.163727805018425,-0.132867366075516,-0.158931359648705,-0.102251075208187,-0.061144329607487,0.000801335787401,-0.100188091397285,0.131720483303070,-0.002055381890386,0.018654542043805) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.094479843974113,0.204798415303230,0.105045057833195,0.059023533016443,0.010972129181027,-0.393259227275848,0.264659255743027,-0.168801203370094,-0.093388788402081,-0.002832013648003,0.012468369677663,-0.040432263165712,0.118255533277988,-0.358224958181381,-0.151306927204132,-0.033503547310829) * MODEL10_texOff(vec2(1,0));
res += mat4(0.101520374417305,-0.017072407528758,0.041164595633745,0.216701328754425,-0.143304899334908,0.086462751030922,-0.079414814710617,-0.072631694376469,0.102366991341114,-0.052416313439608,0.097757853567600,0.073637261986732,-0.041264459490776,0.115725085139275,0.127060130238533,0.113487429916859) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.055891849100590,-0.049584917724133,0.260409057140350,0.134167149662971,-0.126221254467964,-0.173702925443649,0.314272254705429,-0.280296564102173,0.030456691980362,-0.042184900492430,-0.005179269239306,0.078885741531849,0.059928890317678,0.057647414505482,0.184506937861443,-0.102495834231377) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.185817241668701,-0.011121345683932,-0.121327325701714,0.134474873542786,0.238718315958977,0.083154790103436,-0.184574395418167,-0.047301094979048,0.081014335155487,-0.018547836691141,-0.105076320469379,0.159317925572395,0.100168183445930,-0.076837122440338,-0.197205886244774,-0.147760957479477) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.005067453254014,0.064932577311993,-0.007434962783009,0.089756317436695,0.045419987291098,0.077132917940617,-0.004853134509176,-0.009838512167335,0.006735172122717,0.070672318339348,0.070480890572071,-0.015607101842761,0.120319351553917,0.093892611563206,0.019392203539610,-0.149562090635300) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.101704806089401,0.008458337746561,-0.046922039240599,-0.095076330006123,-0.265451699495316,0.042414445430040,0.054801549762487,-0.228968188166618,0.168290108442307,0.017288582399487,0.027530325576663,-0.033559188246727,-0.490101575851440,-0.005110812373459,0.195441648364067,0.072961568832397) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.197828799486160,-0.027659064158797,0.026839926838875,0.284131556749344,-0.028174368664622,0.160114645957947,-0.112502805888653,0.272836655378342,-0.422169834375381,-0.088085591793060,-0.143439218401909,0.557663202285767,0.317018985748291,0.079528413712978,-0.049913186579943,0.379251837730408) * MODEL11_texOff(vec2(0,0));
res += mat4(0.118390619754791,-0.204952180385590,0.014106116257608,0.063461206853390,0.082927487790585,-0.153231605887413,0.005149567965418,-0.005336955655366,-0.043613027781248,-0.214075803756714,0.025653759017587,0.069094084203243,0.141373649239540,-0.113467052578926,-0.081436552107334,-0.187105327844620) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.074051640927792,0.210845828056335,-0.186594799160957,0.285352915525436,0.124965123832226,0.060092426836491,-0.011676153168082,-0.056284081190825,0.018846455961466,0.141927078366280,-0.004803671501577,0.067469812929630,-0.111832894384861,0.199913799762726,-0.062132526189089,-0.061582736670971) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.048128236085176,-0.091163434088230,0.117885529994965,0.212312906980515,0.059080917388201,0.130188316106796,-0.080444395542145,0.028964584693313,-0.047217641025782,-0.221281170845032,0.059216324239969,-0.180040240287781,0.047864165157080,-0.283106267452240,0.100365191698074,-0.018121372908354) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.106096789240837,-0.063464067876339,0.024502471089363,0.301049560308456,-0.064032092690468,-0.333829075098038,-0.051013071089983,-0.057487525045872,-0.006204444915056,-0.095479525625706,-0.059385254979134,-0.245118960738182,0.064355216920376,0.051425810903311,-0.061879258602858,-0.092159897089005) * MODEL11_texOff(vec2(1,1));
res += mat4(0.165880531072617,-0.052158582955599,0.058242719620466,0.051722172647715,0.069489732384682,-0.090632170438766,0.110357999801636,0.086388923227787,-0.073853403329849,0.008553266525269,0.030781192705035,0.049049619585276,-0.029015846550465,-0.013060213066638,0.101243481040001,0.202827200293541) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.088965497910976,-0.038440395146608,-0.274987280368805,0.158952564001083,-0.048052299767733,-0.165778741240501,-0.138542771339417,0.300513356924057,-0.170210659503937,0.241568878293037,0.094045124948025,-0.132110968232155,0.041314642876387,0.204333081841469,0.040825303643942,-0.088620848953724) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.109982103109360,0.012312947772443,-0.001427672337741,0.151710972189903,-0.044147115200758,-0.012692820280790,0.131699696183205,0.077722616493702,-0.037209589034319,0.103202044963837,-0.138249471783638,-0.192799419164658,0.068238154053688,-0.047663908451796,-0.180020496249199,0.022348536178470) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.175391346216202,0.017898617312312,0.036467790603638,0.000337150151609,-0.062010370194912,-0.023692985996604,0.050368987023830,0.031694792211056,0.035991206765175,0.169007539749146,-0.015413095243275,0.024744220077991,0.055886987596750,-0.096688315272331,0.233850106596947,-0.020408781245351) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.023093732073903,-0.224606230854988,-0.153197363018990,-0.025115557014942,-0.308909565210342,0.319919437170029,-0.203499376773834,0.124132476747036,0.161335259675980,-0.042908798903227,-0.032726157456636,0.051725827157497,-0.036775380373001,0.272591918706894,0.021340038627386,-0.269015312194824) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.008708038367331,0.133396178483963,0.053549271076918,0.095697999000549,0.166593894362450,-0.060828223824501,0.050574518740177,-0.171636343002319,-0.060831759124994,0.072815857827663,-0.036869738250971,0.095290802419186,-0.004079624544829,-0.092964574694633,-0.081644020974636,-0.066696517169476) * MODEL12_texOff(vec2(0,1));
res += mat4(0.095663011074066,-0.222571581602097,0.255678355693817,-0.056520640850067,-0.065303936600685,0.055055323988199,0.034614577889442,0.012682649306953,0.092087842524052,0.071432098746300,0.180808871984482,0.077684827148914,-0.057868726551533,-0.124583914875984,0.120549224317074,-0.065126180648804) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.062090139836073,0.059364240616560,-0.284795731306076,-0.084191501140594,-0.031565181910992,0.217486336827278,0.018966410309076,0.055963702499866,0.000808036362287,-0.045871358364820,0.027423704043031,0.026786385104060,0.176057174801826,0.042812734842300,-0.157124221324921,0.060544334352016) * MODEL12_texOff(vec2(1,0));
res += mat4(0.101679131388664,0.007672623731196,0.181878209114075,0.118992470204830,0.153503239154816,-0.087472133338451,0.143195509910583,-0.181973889470100,-0.057471852749586,-0.027877667918801,-0.044783908873796,0.005491138435900,-0.193760544061661,0.059357430785894,-0.060856040567160,-0.029221825301647) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.082147724926472,-0.078245013952255,-0.022747341543436,0.039048500359058) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_HQ_3x_Photo] mapping 6_1

vec4 hook()
{
vec4 res = vec4(0.301850765943527,-0.117152772843838,0.159134715795517,0.102498322725296);
res += mat4(-0.038360826671124,-0.090371407568455,-0.000861027860083,0.115603826940060,-0.115471519529819,0.103636756539345,0.014150259085000,0.046843871474266,0.087080195546150,0.023963915184140,-0.162281855940819,0.092335395514965,-0.145739540457726,-0.064860299229622,-0.091580912470818,0.017213897779584) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.091573536396027,0.075665324926376,-0.130357280373573,0.040735278278589,0.102594994008541,0.202401369810104,0.058152675628662,-0.087460398674011,-0.058611836284399,-0.022061912342906,0.010832304134965,0.052729334682226,0.019912246614695,0.102180123329163,-0.244071856141090,-0.012671325355768) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.028290143236518,-0.140519052743912,-0.036502186208963,0.035250522196293,-0.026198616251349,0.149961426854134,-0.044143307954073,-0.079577222466469,0.014182474464178,0.001524237799458,0.145948544144630,-0.009389202110469,0.142653405666351,0.121618449687958,-0.006207076832652,-0.050439849495888) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.090434201061726,-0.025205537676811,0.078499950468540,0.025976091623306,0.088545903563499,0.154661387205124,0.059204258024693,0.092413939535618,-0.157706588506699,-0.010236872360110,-0.402054131031036,-0.108071386814117,0.009562778286636,0.001071727834642,0.122279345989227,0.034674592316151) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.138724282383919,-0.210096523165703,0.221814140677452,-0.007097865920514,-0.001705247443169,-0.015246504917741,-0.037575300782919,-0.033939238637686,-0.915402412414551,0.193182215094566,-0.194434374570847,-0.103614009916782,0.007544802967459,-0.236974596977234,-0.141650855541229,-0.062869027256966) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.154431983828545,0.518156707286835,0.059841964393854,0.041746955364943,0.010436574928463,-0.073649570345879,-0.048123817890882,-0.039956893771887,-0.498697221279144,0.165148213505745,0.265811026096344,-0.043560978025198,-0.074910350143909,-0.298969626426697,0.021951254457235,0.058062501251698) * MODEL1_texOff(vec2(0,1));
res += mat4(0.121657267212868,-0.041021510958672,0.020874589681625,-0.065163932740688,0.024774149060249,0.130970999598503,-0.045540913939476,-0.066403530538082,-0.108198471367359,-0.044703256338835,-0.391576915979385,-0.279411733150482,0.008294121362269,0.024695165455341,0.122016288340092,0.052970852702856) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.011815953068435,-0.090330883860588,-0.112793050706387,0.015353282913566,-0.072690844535828,-0.093181267380714,-0.100321173667908,0.264472097158432,-0.807604312896729,-0.135199204087257,-0.460931658744812,-0.015540575608611,0.173738628625870,-0.074360869824886,0.018501557409763,-0.055763747543097) * MODEL1_texOff(vec2(1,0));
res += mat4(0.076110661029816,0.127999782562256,-0.087454788386822,-0.010587085038424,-0.009204911999404,0.069969162344933,0.023998511955142,0.038543377071619,-0.443472176790237,-0.415280103683472,-0.037854019552469,-0.009423961862922,-0.026040269061923,-0.053646039217710,-0.018347851932049,0.104275062680244) * MODEL1_texOff(vec2(1,1));
res += mat4(0.064902037382126,0.059420060366392,-0.095804303884506,-0.046390086412430,-0.065377421677113,-0.103052593767643,-0.045057829469442,-0.023487793281674,0.158497199416161,0.006936439778656,0.009636781178415,0.028318868950009,0.024887802079320,-0.165858760476112,-0.051498651504517,0.036048192530870) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.500797688961029,0.068768829107285,-0.154488965868950,-0.040863182395697,0.003353296080604,-0.075587175786495,0.097621977329254,-0.045129101723433,0.045614946633577,0.045439735054970,-0.030735427513719,-0.009582610800862,-0.103912740945816,-0.108448311686516,-0.015104820020497,0.008239412680268) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.026764787733555,0.100001543760300,0.068523809313774,0.022872300818563,0.158679738640785,0.056589759886265,-0.008679580874741,-0.227080971002579,0.159196123480797,0.071042820811272,0.055130247026682,-0.107170678675175,0.240012392401695,0.124081879854202,-0.062474209815264,-0.107498131692410) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.094533100724220,-0.029473027214408,-0.005838379729539,0.057749543339014,0.008373597636819,0.067011408507824,-0.298193305730820,0.004131302237511,-0.225759074091911,0.028251560404897,-0.261747568845749,-0.237527042627335,-0.032846771180630,-0.149233192205429,0.258793443441391,-0.066636912524700) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.011845255270600,0.017769670113921,0.152203068137169,0.156816616654396,0.002009917749092,-0.056163799017668,0.117135144770145,0.003165311645716,-0.105015434324741,-0.090736135840416,-0.103412054479122,-0.103460714221001,-0.204418987035751,-0.225770220160484,-0.027463903650641,0.178576231002808) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.422980725765228,-0.163587197661400,-0.095423229038715,0.062209222465754,0.075908392667770,-0.028536129742861,0.044035367667675,0.115411877632141,0.040674913674593,-0.069826573133469,0.077085807919502,-0.160500824451447,0.035052325576544,0.245510578155518,-0.060886956751347,-0.071724176406860) * MODEL2_texOff(vec2(0,1));
res += mat4(0.021196624264121,0.004712507128716,-0.102652370929718,0.025652926415205,0.032248437404633,-0.062795631587505,0.121077932417393,-0.073541209101677,-0.131316468119621,-0.091816380620003,-0.002269649179652,-0.373077988624573,-0.019676949828863,0.035268560051918,-0.034364487975836,0.117044396698475) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.025873998180032,0.082961410284042,-0.133893549442291,0.064511798322201,0.112738184630871,0.000818158267066,0.035654313862324,0.110437065362930,-0.187796324491501,-0.149756461381912,0.205675020813942,-0.448811888694763,-0.175271153450012,-0.086024165153503,-0.159166336059570,0.174003154039383) * MODEL2_texOff(vec2(1,0));
res += mat4(0.024448353797197,0.050114087760448,0.042115695774555,-0.166055083274841,0.015123652294278,0.042051333934069,-0.064404569566250,0.045705735683441,-0.135002762079239,0.019469968974590,-0.019083444029093,-0.013034408912063,0.015202545560896,0.024127259850502,-0.102695472538471,0.135120898485184) * MODEL2_texOff(vec2(1,1));
res += mat4(0.043307259678841,0.072019793093204,-0.023772686719894,-0.037867002189159,0.007561533246189,0.013396285474300,-0.104374974966049,-0.013114528730512,0.045025277882814,0.017021786421537,-0.161947518587112,-0.016252646222711,0.118760831654072,0.058957830071449,-0.029554881155491,0.126099467277527) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.171804055571556,0.063770838081837,-0.069119498133659,-0.021325405687094,-0.013514164835215,-0.144211769104004,0.194541350007057,0.071568883955479,0.015833873301744,0.035859223455191,-0.113103963434696,0.042363204061985,0.010284875519574,0.055919557809830,-0.074962377548218,-0.164235562086105) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.314722061157227,0.044534347951412,0.125188082456589,-0.058607503771782,0.021861381828785,0.070335872471333,0.022064214572310,-0.043114688247442,-0.104184940457344,0.023897819221020,0.023694274947047,0.054977584630251,-0.067114643752575,0.050612177699804,0.004577285610139,0.009127574972808) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.209912270307541,0.047717981040478,-0.101086400449276,-0.041198760271072,-0.002734006149694,-0.088043376803398,0.137918025255203,-0.033100251108408,-0.212791517376900,0.054365441203117,-0.512567281723022,0.080464690923691,0.016009241342545,0.012866497971117,-0.263507753610611,0.014835763722658) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.008376381359994,-0.020823780447245,0.198190078139305,-0.402534157037735,-0.233332589268684,0.189102813601494,-0.220664739608765,-0.002022709930316,-0.185260415077209,0.044337816536427,-0.043065961450338,0.200347527861595,-0.244513645768166,-0.152182221412659,-0.141464218497276,0.205297961831093) * MODEL3_texOff(vec2(0,0));
res += mat4(0.045716032385826,0.234414115548134,-0.032185811549425,0.126728326082230,0.019382216036320,0.323254197835922,-0.162030816078186,0.113425925374031,-0.164834856987000,0.044465254992247,-0.086467094719410,-0.051482249051332,-0.185328260064125,0.065190151333809,0.127859443426132,0.087276592850685) * MODEL3_texOff(vec2(0,1));
res += mat4(0.147692933678627,-0.022238239645958,0.092796586453915,-0.112926773726940,0.014427791349590,-0.055202890187502,0.017058955505490,0.160706639289856,0.017658656463027,-0.026066638529301,-0.339678108692169,-0.031287129968405,0.125891044735909,0.084309875965118,-0.192572608590126,-0.068507477641106) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.091249831020832,-0.156105533242226,0.195985049009323,-0.141600340604782,-0.053702071309090,-0.158053308725357,0.149538159370422,-0.202566415071487,-0.197233006358147,-0.141761183738708,-0.023719402030110,-0.084168784320354,-0.130852833390236,-0.041903249919415,0.026085287332535,-0.000928625871893) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.051312748342752,-0.111640684306622,-0.012928130105138,0.027894243597984,-0.139633551239967,0.096541956067085,0.057784438133240,0.028479237109423,-0.052727546542883,-0.049968484789133,-0.025099704042077,0.156614542007446,-0.067884303629398,0.008742547594011,0.123545736074448,0.132052734494209) * MODEL3_texOff(vec2(1,1));
res += mat4(0.261304020881653,0.080123513936996,-0.011669373139739,0.013945346698165,-0.004635391756892,0.056068275123835,-0.096766263246536,0.069380879402161,0.204425379633904,-0.006808459758759,-0.056360669434071,-0.143948644399643,0.025550644844770,-0.037867516279221,0.088495694100857,-0.339303284883499) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.099920034408569,0.140326872467995,0.026989445090294,0.278754234313965,0.159134298563004,0.012920356355608,-0.053785547614098,0.072673358023167,-0.102310165762901,0.053347337990999,-0.148997217416763,-0.286255121231079,-0.051768664270639,0.063781216740608,-0.087500207126141,-0.580910921096802) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.007263450883329,0.076516777276993,0.043623991310596,-0.144978508353233,0.047528650611639,0.080326020717621,0.057330720126629,0.015452659688890,0.344104111194611,0.040169380605221,-0.087157651782036,-0.348372131586075,0.025495229288936,-0.077501602470875,0.134522721171379,-0.281469464302063) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.095525637269020,-0.076448239386082,0.059673804789782,0.011778827756643,0.127432599663734,-0.092987827956676,-0.018114482983947,-0.005790243390948,-0.043464738875628,0.001928314100951,-0.044246729463339,-0.092978052794933,-0.030939456075430,-0.053021930158138,0.065436489880085,-0.285850882530212) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.107546985149384,0.014907702803612,-0.428885251283646,-0.153206557035446,-0.097020909190178,-0.244676083326340,0.395444691181183,-0.031615741550922,-0.056047711521387,0.007775029167533,-0.180078238248825,-0.143857419490814,-0.063140742480755,-0.050152931362391,-0.089959777891636,-0.521842777729034) * MODEL4_texOff(vec2(0,0));
res += mat4(0.002084257081151,-0.294552445411682,-0.011908470652997,-0.250208616256714,-0.073879159986973,-0.211098119616508,0.131735533475876,-0.054862841963768,0.026607397943735,0.155912116169930,-0.229993104934692,-0.270300865173340,-0.184366747736931,-0.150485172867775,0.116929180920124,-0.078642934560776) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.010688845068216,-0.013913636095822,0.091998308897018,-0.142715439200401,0.025546291843057,-0.108156859874725,-0.174517214298248,-0.083738200366497,0.000526897842064,-0.026497138664126,0.010810645297170,-0.350101619958878,0.058337423950434,-0.032278154045343,-0.035090137273073,-0.310975849628448) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.028133658692241,-0.090683288872242,0.120732553303242,-0.182459101080894,-0.136776864528656,-0.035472378134727,-0.132127925753593,0.155583575367928,-0.081639416515827,-0.041908834129572,-0.015527566894889,-0.090619511902332,-0.057545978575945,-0.078623019158840,-0.006265488453209,-0.535266876220703) * MODEL4_texOff(vec2(1,0));
res += mat4(0.020144524052739,-0.259366095066071,0.049980998039246,-0.119146957993507,-0.049219552427530,0.077650070190430,0.087445810437202,0.129746794700623,0.060734301805496,0.019854689016938,-0.105463057756424,-0.130689799785614,-0.113302506506443,-0.152243360877037,0.035361565649509,-0.213572725653648) * MODEL4_texOff(vec2(1,1));
res += mat4(0.083376429975033,0.040162034332752,0.114578306674957,0.039354212582111,0.077995993196964,-0.025703310966492,-0.004738288931549,-0.050686329603195,0.108803570270538,0.066779866814613,-0.134529858827591,-0.077870234847069,0.036270570009947,-0.035934086889029,0.104479990899563,0.132482126355171) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.052641849964857,0.334163486957550,-0.233339592814445,-0.070377618074417,0.053864937275648,0.057876806706190,0.243212610483170,0.146585389971733,-0.132500603795052,0.067171156406403,-0.078635863959789,-0.100658811628819,-0.076764918863773,0.171932995319366,0.160138711333275,0.072547279298306) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.288628965616226,0.283901661634445,0.258113980293274,0.195925444364548,0.199577406048775,-0.000879973755218,0.083337336778641,-0.084352262318134,-0.053193900734186,0.025249039754272,0.044937666505575,-0.064171880483627,-0.082773216068745,0.043001364916563,0.170074343681335,0.100276298820972) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.030294967815280,0.016653880476952,-0.094426929950714,0.019341284409165,0.043268430978060,-0.031073544174433,0.096350468695164,0.049777042120695,-0.026690701022744,0.162404417991638,-0.180395364761353,0.017997225746512,0.218690469861031,0.043730732053518,-0.218782633543015,0.048111744225025) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.110080055892467,-0.031675908714533,0.221193864941597,-0.149500310420990,-0.106452681124210,0.051005385816097,-0.334803640842438,0.002292247721925,-0.007631162647158,0.077606096863747,0.166121810674667,0.221345663070679,-0.165629565715790,0.034432396292686,-0.015418783761561,-0.045540075749159) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.069623738527298,-0.130296260118484,0.116691797971725,0.120560027658939,-0.152473226189613,-0.290868192911148,-0.005512684118003,0.024491097778082,-0.021924326196313,-0.071252077817917,0.144070670008659,0.056463427841663,-0.340998172760010,-0.148591786623001,0.051272273063660,-0.004101850558072) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.064856633543968,0.010173893533647,0.000001405681360,-0.079197272658348,-0.021480144932866,0.038369048386812,0.098251208662987,0.061894778162241,-0.000751743325964,0.052166946232319,0.079530328512192,-0.075807817280293,0.152753785252571,-0.026244996115565,-0.102502539753914,-0.066060900688171) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.159172937273979,0.020565630868077,-0.042674399912357,-0.081351175904274,0.068108543753624,-0.056596450507641,0.122568584978580,-0.023310452699661,0.081917762756348,0.061890490353107,0.120593965053558,0.075257897377014,-0.209082856774330,-0.018249023705721,-0.040431253612041,-0.157005444169044) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.074584431946278,0.093073025345802,0.037128280848265,-0.110271885991096,0.054832223802805,-0.030692322179675,-0.053592059761286,0.103444024920464,0.103701904416084,-0.048103798180819,0.114828117191792,-0.030722094699740,-0.149814382195473,-0.159858196973801,0.010895164683461,-0.035666916519403) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.107329733669758,0.020695634186268,-0.008262083865702,0.047731894999743,0.291395783424377,-0.076686985790730,0.055295236408710,0.149864643812180,0.245541185140610,-0.008659829385579,-0.020484577864408,0.040165282785892,-0.173551499843597,0.098207868635654,0.025748431682587,0.120640434324741) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.157711043953896,-0.016932090744376,0.138725697994232,-0.136983498930931,-0.294395893812180,0.135361731052399,0.055483855307102,0.457174390554428,-0.150564014911652,0.128256216645241,0.067247934639454,0.050145111978054,0.125250786542892,-0.102810055017471,-0.075085498392582,-0.048860445618629) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.072891563177109,0.127940669655800,-0.172420844435692,-0.151431545615196,-0.047255460172892,-0.273450791835785,-0.130459398031235,0.310379922389984,0.130443334579468,0.053830999881029,-0.006252489518374,-0.040738455951214,0.045429207384586,-0.092187933623791,0.151881605386734,0.104241266846657) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.042037628591061,-0.027177441865206,-0.200057744979858,0.095930486917496,0.133610412478447,-0.050270732492208,0.060141045600176,0.252823710441589,0.186211973428726,0.090607456862926,-0.074665307998657,0.265380412340164,0.097577989101410,0.318130046129227,-0.082374192774296,0.095205120742321) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.054746542125940,-0.503305733203888,0.031166760250926,0.197765424847603,-0.114267982542515,0.161501005291939,0.014068893156946,0.216428726911545,-0.098053582012653,-0.070350661873817,-0.017103413119912,0.190201848745346,-0.270072162151337,-0.281369179487228,0.459132969379425,0.001715652178973) * MODEL6_texOff(vec2(0,0));
res += mat4(0.167316302657127,0.046810358762741,-0.116986930370331,-0.092076234519482,0.116748422384262,0.037152659147978,-0.139100342988968,0.133147329092026,-0.145369440317154,0.149166524410248,-0.149802044034004,-0.312920421361923,-0.033017322421074,-0.166770249605179,-0.002938416088000,0.024593608453870) * MODEL6_texOff(vec2(0,1));
res += mat4(0.141155749559402,0.059100892394781,0.035652983933687,-0.186220437288284,-0.044406145811081,0.028776114806533,-0.025236757472157,0.309808135032654,0.118248783051968,0.064396567642689,0.006298909895122,-0.143794506788254,0.096086241304874,0.064645245671272,-0.120192922651768,-0.102452151477337) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.048165779560804,-0.056374389678240,0.075720950961113,0.075527973473072,-0.180159062147141,-0.019587805494666,0.039595816284418,0.319460153579712,0.047575697302818,-0.088138833642006,0.030291587114334,0.190549492835999,-0.083523675799370,-0.059862714260817,0.057909131050110,-0.050099834799767) * MODEL6_texOff(vec2(1,0));
res += mat4(0.177002757787704,0.004886732436717,0.147154688835144,-0.105108253657818,0.005652522202581,0.096025831997395,-0.063876874744892,0.131402611732483,-0.002524302108213,-0.001092590158805,0.086297295987606,0.269292205572128,-0.001910080900416,-0.026286689564586,-0.024257255718112,0.150446400046349) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.072671189904213,-0.077482230961323,0.115544848144054,-0.061693556606770) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_HQ_3x_Photo] mapping 6_2

vec4 hook()
{
vec4 res = vec4(0.275238245725632,-0.115081384778023,-0.214967548847198,-0.211610138416290);
res += mat4(-0.029061309993267,0.055011343210936,0.015561055392027,0.000948737084400,-0.079886473715305,-0.113884687423706,0.069115884602070,-0.035011839121580,-0.014686741866171,0.038658548146486,-0.093812823295593,0.077187016606331,-0.153542518615723,-0.100571066141129,-0.058311372995377,-0.057656567543745) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.190843805670738,-0.006438802462071,0.217912837862968,-0.066532984375954,0.134356826543808,0.069915205240250,0.006758466828614,-0.222481012344360,0.015703879296780,0.083975791931152,0.135191321372986,0.142584443092346,-0.050569370388985,0.118430420756340,-0.236135765910149,-0.001134390942752) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.056736804544926,-0.198003962635994,0.093872323632240,-0.112560562789440,0.019774902611971,-0.071930974721909,-0.041409935802221,-0.051396034657955,-0.022735847160220,0.064147301018238,0.034137297421694,-0.003861305536702,0.129288941621780,0.007691860664636,-0.042601242661476,-0.035869080573320) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.008226332254708,0.019505068659782,0.031435288488865,0.014959277585149,-0.231254518032074,0.168664187192917,0.007481573149562,-0.257682740688324,-0.018281748518348,-0.151074200868607,-0.052918579429388,-0.009053442627192,-0.018197424709797,0.024228012189269,-0.130695760250092,-0.129878461360931) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.249240726232529,-0.112151630222797,-0.043489467352629,0.169427141547203,0.119625605642796,0.052943471819162,0.173049345612526,-0.020217772573233,0.169712066650391,0.114062920212746,0.428045958280563,-0.005581368692219,-0.018425121903419,-0.275840252637863,-0.416833817958832,0.174935817718506) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.021481795236468,-0.193612888455391,-0.051271289587021,0.106547571718693,-0.074941635131836,0.156928136944771,-0.033453229814768,-0.023431709036231,0.166765227913857,-0.054556000977755,0.122528515756130,-0.018127627670765,-0.101315788924694,0.211428299546242,-0.051243782043457,-0.025725005194545) * MODEL1_texOff(vec2(0,1));
res += mat4(0.103872641921043,-0.087077803909779,0.037311159074306,-0.089542597532272,-0.093057423830032,-0.098540648818016,-0.175993323326111,0.115864560008049,0.020263919606805,-0.014758373610675,-0.015275930985808,-0.154172211885452,0.208020210266113,0.072909243404865,-0.053563784807920,-0.150670900940895) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.094289660453796,-0.050914820283651,0.032864801585674,-0.219874918460846,0.244540378451347,0.027543026953936,-0.068206369876862,-0.134019136428833,-0.005239882040769,0.339032381772995,0.021677445620298,-0.039637777954340,0.072462379932404,-0.073996104300022,0.279237180948257,0.084789298474789) * MODEL1_texOff(vec2(1,0));
res += mat4(0.023814585059881,0.080532625317574,0.011080458760262,-0.086928024888039,0.124466046690941,0.122136361896992,-0.040235169231892,0.146979585289955,0.145777240395546,-0.198964193463326,0.071317084133625,-0.068859048187733,-0.065978236496449,0.056135214865208,-0.109188385307789,-0.078700728714466) * MODEL1_texOff(vec2(1,1));
res += mat4(0.040191747248173,0.140692219138145,-0.047747667878866,0.060230012983084,0.110680684447289,0.128361716866493,-0.104518808424473,-0.186770677566528,0.116120621562004,-0.086603671312332,-0.026497604325414,-0.103353492915630,0.000185565062566,0.182369425892830,-0.206638738512993,-0.034892566502094) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.024952445179224,0.088147625327110,0.000137508483022,-0.120826929807663,0.226296871900558,-0.092513971030712,-0.006057070568204,-0.064158998429775,0.018633557483554,-0.157956242561340,0.094632215797901,-0.099877320230007,-0.168455049395561,-0.225313618779182,0.091596849262714,-0.201366379857063) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.271367847919464,-0.151862785220146,-0.029199402779341,-0.091864548623562,0.195289477705956,0.036201782524586,0.073744036257267,0.019103627651930,0.011442393995821,-0.095489658415318,-0.040290024131536,0.039159685373306,-0.008995161391795,-0.085621692240238,-0.070640213787556,0.022249255329370) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.095968402922153,0.205700010061264,-0.011725283227861,0.102365121245384,-0.637258648872375,0.121079653501511,-0.087280787527561,-0.249038457870483,-0.031009435653687,0.069498032331467,0.061704896390438,0.071605525910854,0.221657395362854,-0.441939383745193,0.120349891483784,0.084177590906620) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.040017861872911,0.073057360947132,-0.032774031162262,0.218226388096809,-0.075859613716602,0.190694987773895,0.124612011015415,0.148864358663559,-0.133001506328583,0.039454590529203,0.105025507509708,0.141286209225655,-0.199328169226646,0.011956666596234,0.157296717166901,-0.039892572909594) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.039988372474909,0.137806653976440,-0.034200794994831,0.058939505368471,-0.096507117152214,-0.040202025324106,0.061274763196707,0.070771172642708,0.089259810745716,0.095801308751106,-0.061671733856201,0.180215999484062,0.061626527458429,0.255713075399399,0.076341181993484,0.007441388908774) * MODEL2_texOff(vec2(0,1));
res += mat4(0.142645627260208,0.170034021139145,-0.046165298670530,-0.089126691222191,0.133400619029999,-0.152111425995827,0.022899618372321,-0.101998023688793,-0.044485520571470,0.022686291486025,0.031436439603567,0.210645049810410,0.163953498005867,0.066748157143593,-0.057952944189310,0.110458448529243) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.005070777609944,-0.076497882604599,-0.072533525526524,-0.046369776129723,0.026831287890673,-0.179792478680611,-0.098407603800297,0.099855765700340,-0.064258903264999,0.015762582421303,0.055352766066790,0.125148370862007,0.009830089285970,0.273808568716049,-0.042787156999111,-0.184790641069412) * MODEL2_texOff(vec2(1,0));
res += mat4(0.110265471041203,0.111822329461575,-0.171212285757065,-0.025180844590068,0.188951343297958,-0.045101400464773,-0.026915123686194,-0.022633763030171,0.142191275954247,-0.080476157367229,-0.037332590669394,0.198718026280403,0.184641540050507,-0.033515233546495,-0.029801804572344,0.008838513866067) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.104149401187897,-0.036458969116211,-0.022363673895597,0.029599970206618,0.026242887601256,-0.034051712602377,-0.010080520994961,0.029037823900580,0.117158345878124,-0.104525007307529,0.052280314266682,0.074077904224396,-0.055500451475382,-0.161680325865746,-0.010655252262950,0.018872601911426) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.179349690675735,0.061284217983484,0.014618596062064,-0.074297152459621,0.060759592801332,-0.041664406657219,-0.341883182525635,-0.025899033993483,0.022926017642021,0.144143253564835,0.161594197154045,0.086249850690365,0.041805580258369,-0.034794937819242,0.094384416937828,-0.086468458175659) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.140993312001228,-0.010542586445808,-0.025524511933327,-0.051453534513712,0.071772702038288,0.001401327899657,-0.044691868126392,-0.005006403196603,0.162263408303261,0.179542362689972,0.020741544663906,-0.021015767008066,0.222525432705879,0.046379983425140,0.061556693166494,-0.095901623368263) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.210144281387329,0.008021274581552,0.038082569837570,0.103558287024498,0.116928130388260,0.001645139534958,0.049472395330667,0.090670242905617,-0.109349384903908,0.190911814570427,0.026877274736762,-0.021165579557419,-0.060535937547684,0.034582279622555,0.023166563361883,-0.127121195197105) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.174832955002785,0.035178523510695,0.160251855850220,-0.055354252457619,-0.140795022249222,-0.317945033311844,-0.282375276088715,0.109624370932579,-0.010779381729662,0.106113277375698,-0.072852984070778,0.061676755547523,-0.093022577464581,-0.138867080211639,0.303099483251572,-0.016961859539151) * MODEL3_texOff(vec2(0,0));
res += mat4(0.294495582580566,0.096593499183655,-0.043851874768734,0.063366070389748,0.039345696568489,0.089317753911018,-0.072405830025673,-0.029477518051863,0.160772830247879,0.224440351128578,0.006942610256374,0.074621759355068,0.052105668932199,0.054782733321190,0.023472813889384,0.088958807289600) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.291966259479523,0.006396031938493,0.043150201439857,-0.031754404306412,0.038701239973307,0.028587263077497,-0.042747776955366,-0.012663558125496,-0.067358523607254,0.165219128131866,-0.030842022970319,0.111598975956440,-0.170043036341667,0.062955677509308,0.083682201802731,-0.063865490257740) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.215417057275772,-0.009850595146418,-0.066093638539314,0.026744794100523,-0.030950970947742,0.155369743704796,0.170388832688332,0.015887010842562,-0.021786987781525,0.253629297018051,0.099049955606461,0.036929141730070,-0.136938825249672,0.135787099599838,0.013021857477725,-0.141415044665337) * MODEL3_texOff(vec2(1,0));
res += mat4(0.188966602087021,-0.219977810978889,0.007921451702714,0.055087462067604,-0.024355867877603,-0.039949413388968,0.065903484821320,-0.062824584543705,0.052140753716230,-0.085035607218742,0.012123404070735,0.090991020202637,-0.064720705151558,0.191579267382622,0.122109681367874,0.091718651354313) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.115513823926449,0.005050027742982,0.053635392338037,-0.021285388618708,-0.069436259567738,0.124102137982845,-0.117483891546726,0.056713253259659,0.092028528451920,-0.106917820870876,-0.019499154761434,0.018872199580073,-0.129412755370140,-0.130531430244446,-0.028843484818935,-0.085973359644413) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.059386320412159,-0.116238966584206,0.129382744431496,-0.034338321536779,-0.047463145107031,0.097054272890091,-0.262450277805328,-0.121201843023300,0.077686876058578,-0.178721830248833,-0.077286735177040,0.108213007450104,-0.332612186670303,0.066490173339844,0.095846362411976,-0.059292189776897) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.137944594025612,-0.157046422362328,0.065569564700127,0.106887780129910,0.050644986331463,-0.022700911387801,-0.019337976351380,0.041010770946741,0.051729153841734,-0.000388055428630,-0.060803025960922,-0.056208703666925,-0.099907130002975,-0.133353471755981,0.095492891967297,-0.065664283931255) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.145235463976860,-0.227383688092232,0.157871618866920,0.186219006776810,-0.171530887484550,0.214261606335640,-0.069496758282185,-0.290883094072342,-0.126623257994652,0.034019019454718,0.010539165697992,0.145671978592873,-0.016056660562754,-0.188943073153496,0.033401764929295,0.038201496005058) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.062371343374252,0.122009590268135,-0.242484867572784,0.219399839639664,0.243777990341187,-0.099660396575928,0.505667388439178,0.065156377851963,0.275846183300018,-0.161363050341606,0.092894561588764,0.184085965156555,-0.073963254690170,-0.191129684448242,0.036032568663359,-0.097785457968712) * MODEL4_texOff(vec2(0,0));
res += mat4(0.097298391163349,-0.100335776805878,-0.195137947797775,0.190611883997917,0.072361946105957,-0.293150961399078,0.094274438917637,-0.018819352611899,0.269472002983093,-0.062129229307175,0.072565563023090,0.092108339071274,-0.046455733478069,-0.235578820109367,-0.009525815024972,-0.066422708332539) * MODEL4_texOff(vec2(0,1));
res += mat4(0.070956729352474,0.157328635454178,-0.015464740805328,0.205243721604347,-0.206602737307549,-0.079673431813717,0.051222160458565,0.077294372022152,0.109596222639084,-0.090967260301113,0.085584998130798,0.076109908521175,-0.031585205346346,-0.026430387049913,-0.036420386284590,-0.063846938312054) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.137541145086288,-0.074648074805737,0.093664892017841,0.089824944734573,0.194910660386086,-0.135551258921623,-0.216059461236000,0.135196447372437,0.192223802208900,-0.227728530764580,0.024386169388890,0.065457426011562,-0.145683482289314,0.088393941521645,-0.034660454839468,0.083836786448956) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.057487927377224,-0.108132511377335,0.044179160147905,0.149870127439499,0.006539945024997,0.065029881894588,0.021656073629856,0.036547165364027,0.164105281233788,-0.080315142869949,0.046954229474068,0.010317657142878,-0.108206629753113,-0.129250645637512,-0.020856779068708,0.009638375602663) * MODEL4_texOff(vec2(1,1));
res += mat4(0.034953065216541,0.047736097127199,-0.078476667404175,0.010489771142602,-0.000812850834336,0.045072034001350,-0.062986180186272,0.097704984247684,0.005808953661472,-0.083815030753613,-0.053498152643442,0.048719089478254,0.140128895640373,-0.108709894120693,0.072173111140728,0.159799888730049) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.024211170151830,0.268903851509094,-0.070914901793003,0.220572143793106,-0.231249496340752,-0.027716454118490,0.071507453918457,0.105757459998131,0.004607515875250,0.061127454042435,-0.025039931759238,0.119023188948631,0.058045368641615,0.225119173526764,0.168000549077988,0.355274319648743) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.014507040381432,-0.130808606743813,-0.195674017071724,-0.031230665743351,-0.018327934667468,-0.011937499046326,-0.031276516616344,-0.056214481592178,0.008351122029126,0.044759906828403,0.055576942861080,0.033363137394190,-0.119799241423607,-0.083453841507435,0.022344071418047,0.014697780832648) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.003069610102102,0.123081170022488,-0.091437757015228,-0.130973845720291,-0.207885637879372,-0.030548961833119,0.084155119955540,-0.038171842694283,0.027825739234686,0.071890436112881,-0.042233578860760,0.141909524798393,-0.096320815384388,-0.001184463268146,-0.200153708457947,0.049055635929108) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.097346954047680,0.142925292253494,-0.074298679828644,0.138333857059479,-0.882848083972931,0.232969895005226,-0.012651119381189,0.210168957710266,-0.032014321535826,0.009216006845236,-0.150223046541214,0.050524894148111,0.229359358549118,0.090181440114975,-0.178627029061317,0.009795160964131) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.199390068650246,-0.367854446172714,0.043857093900442,-0.076893649995327,-0.453354120254517,0.346020668745041,-0.049855068325996,-0.059354845434427,0.112469501793385,-0.020644694566727,-0.148014709353447,0.051164612174034,0.078148297965527,-0.066982828080654,-0.028119271621108,-0.004020839463919) * MODEL5_texOff(vec2(0,1));
res += mat4(0.073059752583504,-0.009466071613133,0.077828541398048,-0.159489646553993,-0.148413643240929,-0.002782439813018,-0.030110014602542,-0.148147881031036,0.049936737865210,0.010288641788065,-0.013610418885946,0.053139690309763,0.121623352169991,0.029168067499995,-0.017850821837783,0.106273733079433) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.077844828367233,-0.397446751594543,0.082050390541553,-0.118620090186596,-0.460889905691147,-0.019890051335096,0.019914636388421,0.151898592710495,-0.063088223338127,-0.279839068651199,0.026335218921304,-0.136603966355324,-0.037782173603773,0.039427641779184,0.127498194575310,0.326677560806274) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.104051485657692,-0.050326988101006,0.012278732843697,-0.164364367723465,0.015082871541381,-0.206165283918381,-0.025113513693213,-0.013626885600388,0.023049708455801,-0.098726838827133,-0.072826147079468,0.018988953903317,-0.105164930224419,-0.037532899528742,0.067934595048428,0.025995798408985) * MODEL5_texOff(vec2(1,1));
res += mat4(0.014749390073121,-0.088197454810143,-0.013151146471500,-0.015309523791075,-0.134798988699913,0.005883059930056,-0.059972155839205,-0.002195330336690,-0.261612027883530,-0.107950888574123,-0.098223350942135,0.010901411063969,0.135420680046082,-0.039346616715193,0.085684366524220,-0.086989924311638) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.004140235483646,-0.233836278319359,-0.317439228296280,-0.195953086018562,-0.403550297021866,0.135399684309959,0.087782181799412,0.108447499573231,-0.302172899246216,0.106443174183369,0.027644697576761,-0.066261917352676,-0.050011273473501,0.145013943314552,-0.374835491180420,-0.018849959596992) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.122259162366390,0.039396610110998,0.007008890155703,0.104615949094296,-0.033719688653946,0.033538904041052,-0.058357413858175,-0.106560379266739,0.132447630167007,-0.065255798399448,-0.098921813070774,-0.132632136344910,0.027004914358258,0.001918361405842,0.084907710552216,0.026359913870692) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.281473398208618,0.288700431585312,-0.071502566337585,0.006513630971313,-0.009186889976263,-0.088067144155502,0.072151333093643,0.039992704987526,-0.228316664695740,0.016328509896994,-0.040477029979229,0.007876716554165,-0.224215239286423,0.272005945444107,0.022152731195092,0.200130000710487) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.125102400779724,0.212619379162788,0.177133023738861,0.141159504652023,-0.039448399096727,0.037724856287241,0.051162317395210,0.093262583017349,-0.248088270425797,-0.030771870166063,-0.147510260343552,-0.038225937634706,0.225550651550293,-0.528855741024017,0.264935672283173,-0.253528714179993) * MODEL6_texOff(vec2(0,0));
res += mat4(0.206019297242165,0.018041392788291,0.052555434405804,0.124493815004826,-0.040768850594759,0.205838590860367,-0.007086275611073,-0.102236680686474,0.211352795362473,0.217872753739357,0.046811625361443,0.015637198463082,-0.015544684603810,-0.119768515229225,0.124944008886814,-0.033843055367470) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.306613206863403,-0.064516514539719,0.028875680640340,0.100606203079224,-0.110215313732624,0.096141763031483,-0.084586933255196,0.008220568299294,-0.387267142534256,0.027612708508968,-0.067554153501987,-0.025156082585454,-0.219954356551170,-0.008352104574442,0.002219095826149,0.088083736598492) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.191093817353249,-0.167524948716164,-0.095054052770138,-0.224264338612556,-0.128231316804886,0.165718868374825,-0.026456482708454,0.034712646156549,-0.173123359680176,0.015565554611385,0.028307737782598,0.029076874256134,-0.008258201181889,-0.195315480232239,-0.025154957547784,-0.277749240398407) * MODEL6_texOff(vec2(1,0));
res += mat4(0.083936855196953,0.002765166107565,-0.033599421381950,0.179549217224121,0.103050932288170,0.108595274388790,0.063841104507446,-0.022754652425647,0.054318688809872,-0.088373236358166,-0.115003660321236,-0.027341542765498,0.109218128025532,-0.033270187675953,0.044500701129436,0.008370058611035) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.104295223951340,-0.164992719888687,0.024957707151771,0.538985848426819) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_HQ_3x_Photo] mapping 6_3

vec4 hook()
{
vec4 res = vec4(-0.073258616030216,-0.179994806647301,0.123258486390114,-0.026820356026292);
res += mat4(-0.244032829999924,-0.018135832622647,-0.021172787994146,0.057208728045225,0.126758739352226,-0.073534607887268,0.008463378064334,0.078926861286163,0.065986804664135,-0.077629402279854,-0.071716628968716,-0.006732970476151,0.118002109229565,0.015594239346683,-0.021355921402574,0.064821049571037) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.224519968032837,0.136278405785561,0.171559140086174,0.098742522299290,0.175380870699883,0.055225457996130,-0.138579279184341,-0.108092404901981,0.057722806930542,-0.099640458822250,-0.086386434733868,-0.057429566979408,0.169302448630333,-0.050736363977194,-0.532180964946747,0.110826753079891) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.089740276336670,-0.032344132661819,-0.066019535064697,-0.039161495864391,0.108373947441578,-0.082055114209652,-0.085341393947601,0.022785553708673,-0.004140420816839,-0.037269234657288,-0.076868146657944,-0.031623393297195,0.034869492053986,0.067376486957073,-0.093427382409573,-0.031499437987804) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.096964173018932,0.120726473629475,-0.009894512593746,-0.108882024884224,0.399870425462723,-0.054741527885199,-0.022109974175692,0.489376366138458,-0.007971513085067,-0.217697247862816,0.010952881537378,-0.065981023013592,-0.173184975981712,0.031730260699987,-0.034414734691381,-0.047644034028053) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.029465297237039,0.089036926627159,0.124362088739872,-0.040549274533987,-0.214006945490837,-0.040435556322336,-0.123495899140835,-0.276810556650162,-0.032148066908121,0.062603749334812,-0.089462384581566,-0.091203279793262,-0.253170967102051,-0.240529105067253,0.363259285688400,-0.299237310886383) * MODEL1_texOff(vec2(0,0));
res += mat4(0.443484961986542,-0.147861421108246,0.264242112636566,0.184657439589500,-0.053208969533443,0.221852988004684,0.013119702227414,-0.033719066530466,-0.057714428752661,-0.113182693719864,-0.087471798062325,-0.116042487323284,0.019306752830744,0.105897739529610,0.011788638308644,0.039031479507685) * MODEL1_texOff(vec2(0,1));
res += mat4(0.000300147657981,-0.017058085650206,-0.009769155643880,0.029309079051018,0.145115882158279,-0.041569609194994,0.002672427566722,0.146130323410034,0.272974342107773,-0.161361694335938,0.056886374950409,-0.008189191110432,-0.088670015335083,0.028886867687106,-0.068833507597446,0.028414664790034) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.045468356460333,-0.081382371485233,0.011747116222978,0.004275165498257,0.095468781888485,-0.237247347831726,-0.053040966391563,-0.112418495118618,-0.218478590250015,-0.115536242723465,-0.238281771540642,-0.177022114396095,-0.178003355860710,-0.140285044908524,0.192322030663490,-0.138418346643448) * MODEL1_texOff(vec2(1,0));
res += mat4(0.329767316579819,-0.297600597143173,-0.158679053187370,0.070722222328186,0.020772829651833,0.179392486810684,0.010559112764895,0.073671348392963,-0.009944094344974,-0.022764315828681,-0.129199266433716,-0.119221672415733,0.058899343013763,0.100240215659142,-0.001938071916811,0.105834521353245) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.052165213972330,0.018726132810116,-0.004590417724103,0.003805993590504,0.073250241577625,0.078033380210400,-0.071533977985382,0.151508331298828,-0.156712546944618,0.036182716488838,0.037961803376675,0.023325089365244,0.019818648695946,-0.109483622014523,0.028977043926716,-0.083357200026512) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.023964881896973,-0.165899157524109,0.111263424158096,0.089514262974262,-0.265537798404694,0.020024368539453,0.352907419204712,-0.057458672672510,-0.001474495278671,0.004899625666440,0.006273330189288,0.038881663233042,0.023623593151569,0.085478536784649,0.023949120193720,0.048210006207228) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.163403853774071,0.030107380822301,0.047208867967129,0.033894117921591,-0.013246330432594,-0.111760191619396,0.176115408539772,-0.084427848458290,-0.044232990592718,0.127532213926315,0.065746515989304,0.066329702734947,-0.078325271606445,-0.055850211530924,0.017678949981928,-0.054156497120857) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.002331973519176,-0.008075645193458,-0.098606161773205,-0.002695603994653,0.205792725086212,0.028093397617340,0.017299478873610,0.244602918624878,0.127238526940346,0.230261221528053,-0.097263708710670,0.081993699073792,-0.274008482694626,-0.181739062070847,0.288687497377396,-0.386736154556274) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.159180670976639,-0.152862548828125,-0.020591780543327,0.010539298877120,-0.328486502170563,0.360464394092560,0.067094430327415,-0.070972584187984,0.119396515190601,-0.284670561552048,-0.545282304286957,0.032571215182543,0.237990096211433,-0.245653226971626,-0.465021133422852,-0.133929207921028) * MODEL2_texOff(vec2(0,0));
res += mat4(0.073206156492233,0.245841458439827,-0.126687660813332,0.073660820722580,0.075660005211830,-0.189371347427368,-0.032453410327435,-0.039270207285881,0.136679545044899,0.111990548670292,-0.135075524449348,0.032245472073555,0.036741442978382,0.353391736745834,0.175687596201897,-0.095729686319828) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.021275199949741,-0.087176851928234,-0.061725892126560,0.024840256199241,-0.008184210397303,-0.034213226288557,0.065364755690098,-0.062086779624224,-0.025798147544265,-0.058792218565941,0.009031079709530,0.105000235140324,-0.011405126191676,0.061210274696350,0.046820499002934,-0.065458290278912) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.020053721964359,0.053850386291742,0.047009147703648,0.006715350318700,-0.127660140395164,0.190991491079330,0.051529847085476,-0.001705780276097,0.039414696395397,-0.156535312533379,0.042564794421196,0.081701859831810,-0.024482004344463,-0.245105624198914,-0.041789304465055,-0.079230964183807) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.201805353164673,-0.003815311705694,-0.167659670114517,0.103466741740704,-0.025366805493832,0.040921267122030,0.028938058763742,-0.046803236007690,0.049964074045420,0.140118375420570,0.105093620717525,0.119447588920593,-0.083187095820904,0.295988231897354,0.041575223207474,-0.029981093481183) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.010187358595431,0.153621464967728,-0.046550802886486,0.083905518054962,0.033576738089323,-0.116045698523521,-0.050581369549036,0.009902201592922,0.013715394772589,-0.042065959423780,-0.003980419132859,-0.066209122538567,0.083393000066280,0.043632067739964,0.041989963501692,0.006252722349018) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.040802780538797,0.131978169083595,-0.041694726794958,-0.006135918665677,-0.002967603737488,0.088176950812340,0.064060851931572,0.162933588027954,0.109000526368618,-0.156939983367920,-0.219304904341698,-0.020590510219336,0.046861000359058,0.237970501184464,-0.210499897599220,-0.013506073504686) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.019636042416096,-0.072448506951332,-0.131399035453796,-0.090784020721912,-0.021876322105527,-0.002270552329719,-0.032810982316732,-0.033905990421772,0.075170405209064,-0.072181075811386,-0.210602089762688,-0.134661033749580,0.097092434763908,0.010072998702526,-0.211068361997604,-0.022335981950164) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.109143815934658,0.042725030332804,0.059152707457542,0.046917006373405,-0.027131564915180,-0.147993907332420,-0.064435705542564,-0.150958016514778,-0.015322153456509,0.000341647333698,0.002692468930036,0.074778944253922,-0.029617486521602,0.113206081092358,0.000052834577218,0.038136195391417) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.126753091812134,0.042425964027643,-0.146131038665771,-0.071338266134262,0.810219883918762,-0.316965013742447,-0.034195709973574,-0.041398495435715,-0.059361111372709,-0.208113268017769,-0.160664230585098,-0.135272428393364,-0.005879677832127,-0.096618816256523,-0.279228240251541,0.120469391345978) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.054805748164654,0.296775877475739,-0.192672789096832,-0.086121380329132,-0.088163129985332,0.106505937874317,0.017506422474980,0.122840270400047,-0.064947925508022,0.179221868515015,-0.020987119525671,-0.086627140641212,-0.068793542683125,0.156123295426369,-0.226245284080505,-0.063818991184235) * MODEL3_texOff(vec2(0,1));
res += mat4(0.024402450770140,0.030322492122650,0.097284331917763,-0.057665280997753,-0.054239980876446,0.096226856112480,-0.049898710101843,0.085728362202644,0.035975996404886,-0.142917603254318,-0.003421063534915,0.023122321814299,-0.024679502472281,-0.146759957075119,0.080405138432980,-0.023768680170178) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.039304491132498,0.410477280616760,-0.006870296783745,0.094866499304771,0.289026230573654,-0.137739449739456,0.005073305219412,-0.080455519258976,0.094151288270950,-0.094274260103703,-0.000597572827246,-0.088497504591942,0.047659672796726,0.012382348999381,-0.276154965162277,0.033870309591293) * MODEL3_texOff(vec2(1,0));
res += mat4(0.000256149680354,0.290512382984161,-0.018646217882633,-0.052667047828436,-0.010276883840561,0.114701971411705,-0.027334995567799,-0.000321566854836,0.054423943161964,-0.035080224275589,-0.024619553238153,-0.031580679118633,-0.022136254236102,0.074906237423420,-0.052358858287334,-0.029995720833540) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.006248462945223,0.015885120257735,-0.002591871190816,0.064251050353050,0.029741980135441,0.025564592331648,-0.026325086131692,0.052521344274282,0.016241861507297,-0.029019908979535,-0.117372475564480,-0.043517917394638,0.060067959129810,-0.051551878452301,0.068863302469254,-0.021738374605775) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.039975866675377,0.017784267663956,0.005254561081529,-0.066524364054203,0.018764739856124,-0.052811667323112,-0.335544317960739,-0.027381222695112,-0.028377398848534,-0.035219121724367,0.067346528172493,0.118124790489674,0.016665376722813,0.032379206269979,-0.135954767465591,-0.023409916087985) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.114623352885246,-0.039487794041634,-0.025746379047632,0.019675564020872,-0.031119432300329,0.038881152868271,-0.045129191130400,0.009077185764909,0.011699746362865,-0.180759102106094,-0.060145672410727,0.031172031536698,-0.025459393858910,-0.021455386653543,-0.105705365538597,0.025324810296297) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.005376368295401,-0.070533089339733,-0.014642894268036,0.104604937136173,-0.123685978353024,0.018573671579361,-0.013950475491583,0.129689812660217,0.096578590571880,-0.013201565481722,-0.138401567935944,0.048071369528770,0.017600864171982,-0.093183122575283,0.124295763671398,-0.054217550903559) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.045839358121157,-0.047900233417749,-0.047168772667646,-0.116341300308704,-0.217206284403801,-0.090689837932587,0.577996969223022,-0.324035108089447,0.107953540980816,0.067084245383739,-0.033398617058992,0.056788906455040,-0.022518603131175,0.054672170430422,0.017337871715426,0.100447624921799) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.141432985663414,0.037785295397043,-0.273058295249939,-0.031944021582603,-0.117770291864872,0.055453497916460,0.175372540950775,-0.012215544469655,0.149527043104172,-0.142896294593811,-0.156782478094101,0.029384829103947,-0.034832891076803,-0.128668993711472,-0.154632329940796,-0.052472427487373) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.000403241399908,-0.001125712180510,-0.005674131214619,0.122918874025345,-0.071563370525837,-0.082470498979092,0.038672521710396,-0.098336301743984,0.066106125712395,-0.100097775459290,-0.039931520819664,-0.043488599359989,0.057412754744291,0.033737037330866,0.005602207966149,0.003465041285381) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.041714597493410,-0.186550393700600,0.137254863977432,-0.321568518877029,0.062175799161196,0.167596518993378,-0.290236383676529,0.162369981408119,0.126715779304504,0.167574286460876,-0.059460084885359,0.064238823950291,0.060122117400169,-0.024269098415971,0.071107350289822,0.020374018698931) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.117646493017673,0.042714357376099,0.123996980488300,-0.008117829449475,-0.125445112586021,-0.115858294069767,-0.026041476055980,-0.075052157044411,-0.039033960551023,-0.153669789433479,-0.196647152304649,-0.000469448335934,-0.011365039274096,-0.044567719101906,0.003083996009082,-0.058153331279755) * MODEL4_texOff(vec2(1,1));
res += mat4(0.123377606272697,-0.117677494883537,0.046400304883718,-0.051087614148855,-0.031171781942248,-0.059894949197769,-0.024946726858616,0.059788934886456,0.044871959835291,-0.060823738574982,-0.007366131059825,-0.066320970654488,-0.011233718134463,-0.185741797089577,-0.110287651419640,0.067294783890247) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.225486457347870,0.110164292156696,-0.169101133942604,0.097000889480114,-0.081355653703213,0.030005859211087,-0.025939915329218,0.075876563787460,0.054633587598801,0.053398877382278,0.023327389732003,-0.094607248902321,0.075620621442795,-0.245972841978073,-0.123300671577454,0.072992637753487) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.026700178161263,0.000165864694281,-0.011135932058096,0.019586589187384,-0.091656714677811,0.021777827292681,-0.085358619689941,-0.002273260150105,0.059240769594908,0.089157238602638,-0.041183505207300,-0.047591947019100,-0.102294273674488,0.007220946252346,-0.016017487272620,0.061816234141588) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.075559228658676,0.156727612018585,-0.041756790131330,-0.009243754670024,-0.101445943117142,0.023425469174981,0.098811127245426,-0.003459455212578,0.177436202764511,0.062719561159611,0.002179978182539,0.038724485784769,0.186585277318954,-0.063093885779381,0.163364008069038,0.061461705714464) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.281541526317596,0.084822393953800,-0.060422420501709,0.122395530343056,-0.179886057972908,0.213692262768745,-0.030940042808652,0.483641594648361,0.127742201089859,-0.138347953557968,0.190189033746719,-0.089847996830940,-0.097476847469807,0.085093095898628,-0.054589141160250,0.157110080122948) * MODEL5_texOff(vec2(0,0));
res += mat4(0.109560936689377,-0.175861477851868,-0.004548883996904,0.085661873221397,-0.131198123097420,0.261658221483231,-0.023630853742361,-0.021283501759171,0.066488981246948,0.020323868840933,0.105351924896240,0.141324967145920,-0.008336397819221,0.109645128250122,-0.025061707943678,0.003339834511280) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.033220462501049,-0.118624314665794,-0.016148183494806,-0.184421017765999,0.050963182002306,0.035062335431576,0.018523192033172,-0.088118672370911,-0.027864519506693,-0.032991155982018,0.047118917107582,0.028388176113367,0.035601064562798,0.044663723558187,0.058271866291761,0.033557016402483) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.076210305094719,-0.124264977872372,0.033640239387751,-0.015093070454895,0.056949108839035,0.010468043386936,0.137664958834648,0.076460272073746,0.081500224769115,-0.262763351202011,0.134207531809807,-0.049806058406830,0.099403992295265,-0.233420714735985,0.036209493875504,-0.027650270611048) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.115626253187656,-0.041876118630171,0.014352324418724,0.037843685597181,-0.002850794699043,0.017900289967656,0.090222537517548,0.026554796844721,-0.077540747821331,-0.176449701189995,-0.076898850500584,0.044929988682270,0.047408480197191,0.046995170414448,0.048999842256308,-0.108431853353977) * MODEL5_texOff(vec2(1,1));
res += mat4(0.062992490828037,-0.013352883979678,0.078575894236565,0.028644626960158,-0.092181086540222,-0.065524779260159,0.028211336582899,-0.020211368799210,0.015325780957937,-0.093986272811890,0.133794471621513,0.030196057632565,0.022767856717110,-0.003604761790484,0.051800068467855,0.117018841207027) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.080599367618561,0.013435502536595,-0.023457791656256,-0.094371475279331,0.057082913815975,0.106075413525105,0.153933390974998,-0.038104940205812,-0.104893483221531,0.419524610042572,-0.063791699707508,0.180690392851830,0.046539794653654,0.026435926556587,-0.068760380148888,-0.038916349411011) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.028700647875667,-0.039200328290462,0.131395608186722,-0.143277019262314,-0.004771745298058,-0.161968991160393,-0.091922171413898,-0.011743954382837,-0.089006207883358,0.251736283302307,-0.087297491729259,-0.010916560888290,0.008557313121855,0.130091339349747,0.101492427289486,-0.024458184838295) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.113873153924942,0.192247852683067,-0.142712607979774,0.199719443917274,0.005403756164014,-0.088529661297798,0.109204567968845,-0.083236515522003,0.008120619691908,0.089201331138611,0.061959695070982,-0.020448639988899,-0.034522160887718,0.112282916903496,-0.040212880820036,0.035219974815845) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.026954645290971,-0.058086521923542,-0.120977044105530,-0.109904594719410,-0.006517993286252,-0.006394293624908,-0.006955261342227,0.048629883676767,0.048799980431795,0.152401447296143,0.144071564078331,0.052183948457241,0.032397609204054,-0.205134570598602,0.451283216476440,-0.146653503179550) * MODEL6_texOff(vec2(0,0));
res += mat4(0.095304690301418,-0.124797008931637,0.385318487882614,-0.100723907351494,0.026016145944595,-0.234604224562645,0.057618591934443,-0.040888864547014,0.006084374152124,-0.055954113602638,0.000543126720004,-0.014146961271763,-0.214723408222198,-0.099893271923065,0.195784375071526,0.149140089750290) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.003657629014924,0.031736310571432,0.066015578806400,0.085721030831337,0.065314337611198,-0.211655899882317,0.078928999602795,-0.021974513307214,0.006427692715079,0.128892287611961,0.039326354861259,0.055074483156204,-0.004322692751884,-0.042393296957016,0.059338159859180,0.064815625548363) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.187187835574150,0.217646375298500,0.052780743688345,-0.101249985396862,0.057120107114315,-0.069838084280491,0.038267400115728,-0.044197205454111,0.032793689519167,0.055776130408049,0.223628476262093,0.046228621155024,-0.067150846123695,0.059819877147675,-0.145720764994621,-0.052049197256565) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.033822409808636,-0.003020220436156,-0.026622310280800,0.012756871990860,0.056281629949808,-0.061811435967684,-0.006206509191543,-0.055427733808756,-0.044324945658445,0.223872974514961,-0.025100292637944,0.010235986672342,-0.115628093481064,0.024390963837504,0.005216063465923,0.006607956718653) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.007171527016908,-0.005971089005470,0.363614648580551,-0.017059942707419) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_HQ_3x_Photo] mapping 6_4

vec4 hook()
{
vec4 res = vec4(-0.295594871044159,0.059818699955940,0.114843547344208,0.249077886343002);
res += mat4(-0.082908146083355,0.041606698185205,0.062789417803288,0.086187072098255,-0.232324972748756,0.097699902951717,-0.114125192165375,0.117241859436035,-0.027429351583123,-0.087456338107586,0.087700173258781,0.091172158718109,0.041494812816381,-0.081535860896111,0.057540722191334,0.096904426813126) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.034659769386053,0.074130818247795,0.081966474652290,-0.134881988167763,0.002459729788825,-0.244629904627800,0.043902389705181,0.069490097463131,0.027449548244476,-0.059874255210161,-0.024963343515992,-0.022068742662668,0.264223963022232,0.051170747727156,0.018940243870020,0.040040902793407) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.202458441257477,0.248983010649681,-0.002836829284206,-0.149911493062973,0.076393425464630,0.138665080070496,0.023439384996891,0.048282742500305,-0.043894123286009,-0.033263422548771,-0.063377417623997,0.064412958920002,0.090877890586853,-0.059895545244217,0.031742874532938,0.056211993098259) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.061529152095318,-0.059197388589382,0.052750676870346,0.042129941284657,-0.234430164098740,-0.062320355325937,-0.020613268017769,0.041617505252361,-0.050853226333857,-0.064890772104263,-0.004557995125651,-0.082086555659771,0.047396861016750,0.030156841501594,-0.168140545487404,0.282647281885147) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.004986977670342,-0.152607768774033,0.084643475711346,0.234589114785194,0.159101039171219,-0.138536080718040,-0.116584345698357,-0.149706110358238,-0.056090693920851,-0.152156129479408,0.033069312572479,-0.505300343036652,-0.009517797268927,-0.163757935166359,0.121963880956173,0.304877609014511) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.231773018836975,-0.027827862650156,0.042534016072750,0.249518722295761,-0.025775611400604,0.015858134254813,-0.148398101329803,-0.025726137682796,-0.158621147274971,-0.004772963933647,0.065070308744907,0.051757719367743,0.278206348419189,0.244103610515594,-0.059665609151125,0.074739806354046) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.008904966525733,-0.091735646128654,-0.060163255780935,0.042321417480707,-0.195970088243484,0.001421788125299,0.208777636289597,0.024868367239833,0.008519220165908,-0.031314015388489,-0.008425312116742,0.068621098995209,-0.058964636176825,0.005279781296849,0.043251976370811,-0.066221050918102) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.039416033774614,-0.235480442643166,0.063961118459702,0.036066584289074,-0.195701926946640,-0.033036194741726,0.058017294853926,0.201507747173309,-0.046121001243591,-0.060267586261034,-0.042553432285786,-0.076047688722610,-0.018044311553240,0.043432716280222,-0.065855979919434,-0.142328470945358) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.117240339517593,0.034011155366898,0.135842859745026,-0.040387228131294,-0.106679826974869,0.028599373996258,-0.094189308583736,-0.083622828125954,-0.132958874106407,0.174961149692535,0.072261251509190,0.093262054026127,0.118678018450737,-0.053811959922314,0.112860970199108,-0.018610339611769) * MODEL1_texOff(vec2(1,1));
res += mat4(0.104049168527126,0.077684931457043,0.047885388135910,-0.018628841266036,-0.044612925499678,-0.039212912321091,-0.095379255712032,0.162117570638657,-0.046604167670012,0.085331596434116,-0.095905400812626,-0.224168822169304,-0.016335297375917,0.132193744182587,-0.054404038935900,0.129473522305489) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.039940599352121,0.118177309632301,0.168558418750763,-0.168988093733788,-0.194521144032478,-0.085552081465721,-0.065026633441448,-0.056064069271088,-0.027453383430839,0.170412257313728,0.148959487676620,-0.102429307997227,0.215337738394737,-0.040935225784779,-0.008493049070239,0.030353542417288) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.290276229381561,0.098797909915447,0.147996008396149,-0.317040413618088,-0.199523016810417,-0.285353660583496,0.155453383922577,0.114160604774952,-0.010279398411512,-0.071914024651051,-0.044201441109180,-0.074656903743744,-0.084016673266888,-0.046093203127384,-0.160820588469505,0.009282662533224) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.032477743923664,-0.023148316890001,0.156440556049347,-0.056335136294365,-0.031913399696350,-0.025255475193262,0.217988461256027,0.116054847836494,0.028897855430841,0.048417266458273,-0.145684912800789,-0.086553461849689,-0.176298692822456,0.048711549490690,0.046772003173828,-0.241034954786301) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.059895899146795,-0.105996139347553,0.295369327068329,-0.200159415602684,0.094461366534233,-0.208090692758560,-0.565200269222260,0.016795787960291,0.153300225734711,0.084621064364910,-0.082401663064957,-0.230666041374207,0.258597910404205,-0.024109873920679,0.186351910233498,0.069063544273376) * MODEL2_texOff(vec2(0,0));
res += mat4(0.118987545371056,0.035240307450294,0.189172655344009,-0.074787430465221,-0.033282384276390,0.202910900115967,0.086602389812469,-0.022937871515751,0.024369554594159,0.247273519635201,0.073622062802315,-0.135270878672600,-0.090499497950077,-0.135781511664391,0.013590266928077,-0.031804755330086) * MODEL2_texOff(vec2(0,1));
res += mat4(0.034498974680901,-0.014928251504898,0.225462213158607,-0.036909732967615,-0.132988885045052,-0.056515153497458,-0.035173494368792,0.057068184018135,0.180554538965225,0.005690034478903,-0.118767552077770,-0.037512376904488,-0.084261521697044,0.010264514945447,-0.073750317096710,0.008221039548516) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.096035413444042,-0.004088086076081,0.122702725231647,0.036433074623346,0.088955044746399,0.073144219815731,0.092522203922272,0.008514767512679,0.146413698792458,-0.126928538084030,-0.008999928832054,-0.095063425600529,0.037527713924646,-0.071155741810799,-0.155443668365479,-0.059413217008114) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.111202418804169,0.067860148847103,0.005077965091914,0.102742731571198,-0.033240828663111,0.170439273118973,0.125869989395142,0.029969152063131,0.258996665477753,0.284898757934570,0.037473462522030,-0.221388235688210,0.009027818217874,0.085743084549904,0.000304504472297,0.037088025361300) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.007859167642891,0.056689184159040,0.010333708487451,0.142176091670990,0.053327094763517,0.018878765404224,0.071549564599991,-0.104478202760220,0.001300588133745,0.045110624283552,0.078491061925888,-0.165627270936966,-0.046787168830633,-0.014964719302952,-0.077085182070732,-0.083099149167538) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.187035053968430,-0.150502115488052,-0.023438952863216,-0.058428663760424,-0.024729888886213,0.004258149769157,-0.063333913683891,0.064261779189110,0.188825398683548,0.103894837200642,0.243174836039543,-0.161158472299576,-0.088095508515835,-0.004244200885296,-0.027066649869084,-0.056768488138914) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.041414126753807,0.071438692510128,0.046496875584126,0.043375708162785,-0.123590320348740,-0.133076503872871,0.134167402982712,0.040876038372517,0.160621300339699,0.081543140113354,0.101258710026741,-0.094824038445950,0.004003143869340,0.101963609457016,-0.048993781208992,0.033076848834753) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.160635545849800,-0.201026290655136,-0.131183341145515,0.068509697914124,0.046723708510399,0.091912031173706,0.036975741386414,-0.077009141445160,0.062125965952873,0.077833727002144,0.050874292850494,-0.110824085772038,0.126971930265427,0.025489311665297,0.069352164864540,0.050497826188803) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.201922133564949,-0.195955753326416,-0.126618668437004,-0.080917596817017,-0.217125564813614,0.274782389402390,0.098456650972366,0.193340301513672,0.055884368717670,-0.107603371143341,0.132517576217651,-0.290645986795425,-0.033288676291704,0.067636117339134,0.056342620402575,-0.097042284905910) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.112689204514027,-0.184522449970245,0.131575286388397,-0.220903769135475,-0.173829436302185,0.303187698125839,-0.108013920485973,-0.131725639104843,-0.155586481094360,0.151183530688286,0.037908051162958,-0.197441786527634,-0.021942358464003,0.189746782183647,-0.216031968593597,-0.008876043371856) * MODEL3_texOff(vec2(0,1));
res += mat4(0.033356755971909,0.030142365023494,-0.076914630830288,0.106537140905857,0.012902718037367,-0.024950202554464,-0.123329006135464,0.012176580727100,0.103391379117966,0.154350489377975,0.066185459494591,-0.110104970633984,0.017906848341227,0.013441513292491,-0.113443836569786,0.000455226341728) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.052224740386009,-0.103038989007473,-0.130745276808739,-0.008376037701964,0.061948113143444,0.100074604153633,-0.021762249991298,-0.144357502460480,0.072658255696297,0.286873131990433,0.083774752914906,-0.237532481551170,-0.051925074309111,0.169591560959816,-0.110351227223873,-0.041432749480009) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.002487727906555,0.213124126195908,0.181840926408768,-0.215761154890060,0.205353334546089,0.021483292803168,0.132268026471138,-0.057656798511744,0.109407812356949,0.200360149145126,0.205288574099541,-0.016693498939276,-0.087648212909698,0.284352958202362,0.063940994441509,0.089731410145760) * MODEL3_texOff(vec2(1,1));
res += mat4(0.043691985309124,0.045846778899431,-0.056172214448452,-0.054780200123787,0.011590875685215,-0.022371275350451,0.071210838854313,0.174814686179161,-0.068009547889233,-0.072436571121216,-0.006671129725873,-0.038320705294609,-0.053661853075027,-0.060958132147789,-0.269701123237610,0.068359658122063) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.035589102655649,-0.046471174806356,0.043520256876945,-0.137751892209053,-0.070221774280071,-0.088408514857292,0.056902047246695,0.103017367422581,0.060243029147387,-0.158930987119675,0.047309916466475,0.082590453326702,-0.010067740455270,-0.163264274597168,-0.365808337926865,0.061615869402885) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.221295878291130,0.044760283082724,-0.066036351025105,-0.026396824046969,-0.004050109535456,-0.050751924514771,-0.074284985661507,0.056800987571478,0.034718509763479,0.096381984651089,-0.025620596483350,0.058292400091887,0.082466751337051,-0.072356998920441,-0.316618621349335,0.057027094066143) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.070768609642982,-0.041146453469992,0.043381247669458,-0.156317159533501,0.057480033487082,0.002776112174615,0.058464456349611,-0.168055295944214,-0.004169619176537,-0.163708552718163,-0.151680782437325,0.050433196127415,-0.063762865960598,-0.063859522342682,-0.392790585756302,0.066245146095753) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.187095910310745,0.190809518098831,-0.073838666081429,0.004269929602742,-0.020972687751055,-0.068413920700550,0.091263599693775,-0.715136826038361,0.112397149205208,-0.154672160744667,0.050543636083603,-0.150422990322113,-0.012331551872194,-0.325965672731400,-0.301396638154984,0.027396205812693) * MODEL4_texOff(vec2(0,0));
res += mat4(0.101056367158890,-0.137918025255203,-0.137663483619690,0.093951843678951,0.071568734943867,0.013597865588963,0.082108393311501,0.070141047239304,0.078590236604214,-0.006276431959122,-0.043325297534466,-0.123308271169662,-0.075469724833965,-0.080610744655132,-0.212425068020821,0.134082525968552) * MODEL4_texOff(vec2(0,1));
res += mat4(0.077892996370792,-0.057459853589535,-0.186048567295074,-0.005735921207815,0.074553646147251,-0.019780848175287,0.049260508269072,0.067349828779697,-0.008810054510832,0.058591201901436,-0.078439638018608,-0.002109891502187,0.078813895583153,0.028111552819610,-0.232997208833694,0.117474943399429) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.038557440042496,-0.061673417687416,-0.270311504602432,0.040291272103786,-0.010055650025606,0.063551366329193,0.097214579582214,0.284712076187134,0.067987367510796,0.224275141954422,-0.088288925588131,-0.003359997412190,-0.026367222890258,0.050433773547411,-0.326332926750183,0.043423421680927) * MODEL4_texOff(vec2(1,0));
res += mat4(0.105302028357983,0.019228316843510,0.154203310608864,-0.029222946614027,-0.116252161562443,0.133945673704147,-0.059105228632689,0.220720693469048,-0.135892301797867,0.299865603446960,-0.034589938819408,0.083777785301208,0.091069176793098,0.129486069083214,-0.112179957330227,0.056392960250378) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.039227217435837,0.117464452981949,0.014632857404649,-0.034070942550898,-0.036236464977264,-0.033284705132246,0.052776549011469,-0.098664022982121,-0.045506794005632,-0.065005354583263,0.101939208805561,-0.067827373743057,0.039442721754313,0.090438149869442,0.107897020876408,-0.088651962578297) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.050575975328684,0.027474939823151,0.163764715194702,-0.030162004753947,0.053565923124552,-0.075342699885368,-0.029533585533500,-0.136028543114662,-0.054921675473452,-0.066540226340294,0.068316563963890,0.032335173338652,0.290167421102524,-0.079906001687050,-0.078996829688549,-0.155558466911316) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.065318539738655,0.121579155325890,0.149416655302048,-0.038357265293598,0.034795861691236,-0.126369029283524,0.166366323828697,-0.043249838054180,-0.137947171926498,0.098548695445061,0.140069156885147,0.045551925897598,0.310212582349777,0.116421513259411,-0.248306870460510,-0.042911559343338) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.043451011180878,0.041572619229555,-0.002219073474407,0.023226046934724,-0.048673298209906,0.030162323266268,-0.093451276421547,-0.076186344027519,0.077960804104805,-0.023947468027472,-0.080741792917252,-0.088076107203960,-0.003699155291542,-0.038145620375872,-0.182941108942032,-0.053018540143967) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.183396577835083,-0.015281794592738,-0.128437846899033,-0.091488778591156,0.089885510504246,-0.279752403497696,-0.209529563784599,-0.188618779182434,-0.179646790027618,-0.274554640054703,0.060658950358629,0.209989726543427,0.016910281032324,-0.063115775585175,-0.195565894246101,-0.274757266044617) * MODEL5_texOff(vec2(0,0));
res += mat4(0.105514757335186,-0.097115464508533,0.113572835922241,0.218211397528648,0.039924245327711,-0.637509703636169,-0.094463177025318,-0.159840509295464,0.050704039633274,-0.146700084209442,0.102544464170933,0.011090110987425,-0.177784204483032,-0.089714877307415,-0.076981157064438,0.032085258513689) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.097229197621346,0.050350543111563,-0.021289965137839,0.029410973191261,0.007538747042418,-0.039795756340027,-0.016768032684922,0.105533726513386,-0.106141597032547,-0.080360904335976,-0.008238945156336,-0.019209047779441,0.024358907714486,0.197964340448380,-0.074369952082634,-0.017258550971746) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.019409507513046,-0.044552411884069,-0.022103603929281,0.169268786907196,0.029593564569950,-0.058502249419689,-0.063986636698246,0.091898404061794,-0.292464822530746,-0.167877674102783,0.130361080169678,0.211317792534828,0.048955790698528,0.011622990481555,-0.242377325892448,0.127719357609749) * MODEL5_texOff(vec2(1,0));
res += mat4(0.041925437748432,0.051207788288593,-0.048766821622849,0.180856093764305,0.090885467827320,0.128940373659134,-0.066496625542641,0.117265515029430,-0.328660547733307,0.356244951486588,0.018457502126694,0.148936048150063,0.090195089578629,0.147989109158516,-0.034570958465338,-0.204403981566429) * MODEL5_texOff(vec2(1,1));
res += mat4(0.008309414610267,-0.069839052855968,0.005437554791570,0.029632665216923,-0.006087622139603,-0.009734008461237,0.091922335326672,-0.168738335371017,-0.022433206439018,-0.010983739048243,-0.026335578411818,-0.092268325388432,0.020550409331918,0.003470434574410,0.005498669110239,-0.040165930986404) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.063074722886086,-0.197375372052193,0.232442855834961,-0.048719447106123,0.009751318022609,-0.035745371133089,0.107061795890331,-0.187367916107178,0.065943501889706,-0.177991062402725,-0.043737530708313,-0.055837891995907,0.034841708838940,0.138556748628616,-0.040004063397646,0.022308239713311) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.241277262568474,-0.040064245462418,0.160303846001625,0.086518593132496,0.311046600341797,0.315925836563110,0.272259294986725,0.066895969212055,0.044125150889158,-0.062039393931627,0.063545949757099,-0.049922183156013,0.102905988693237,0.012058686465025,-0.054764445871115,-0.133030638098717) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.226216584444046,0.101082898676395,-0.193877488374710,0.145669221878052,-0.143076792359352,-0.023214405402541,0.043167468160391,-0.148337036371231,0.058767113834620,0.000640685146209,0.000027737860364,0.009438039734960,0.200111895799637,0.021793168038130,-0.120888218283653,0.026697503402829) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.147564575076103,-0.075453035533428,-0.403830111026764,0.016235448420048,0.190754696726799,-0.152339413762093,0.236758530139923,-0.160636648535728,0.139365881681442,-0.204633444547653,-0.153930097818375,0.049372568726540,-0.352734744548798,-0.147205084562302,0.076575458049774,0.346667826175690) * MODEL6_texOff(vec2(0,0));
res += mat4(0.114017963409424,-0.085374340415001,0.061294600367546,-0.100185655057430,0.100132219493389,0.028691075742245,0.040900040417910,-0.136483907699585,0.131954431533813,-0.062107052654028,-0.101427711546421,-0.026710379868746,0.288951069116592,0.413333177566528,0.062194693833590,-0.079961463809013) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.001820821547881,-0.085591726005077,0.027371158823371,0.042294412851334,0.063205681741238,-0.094915702939034,-0.028919164091349,0.014290106482804,0.044889979064465,-0.007706568576396,0.031235368922353,0.080007523298264,0.009536121040583,-0.137672066688538,-0.046129330992699,0.005741073284298) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.002414350165054,-0.022740477696061,-0.109880506992340,0.169943615794182,0.052785106003284,0.043320119380951,0.000787515949924,-0.166292533278465,0.015899294987321,-0.060854867100716,-0.258634120225906,0.045251000672579,-0.028077390044928,0.106994733214378,-0.033421240746975,-0.056643556803465) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.227856189012527,0.052867624908686,-0.112312987446785,-0.010001901537180,0.013998196460307,0.058460243046284,0.008566084317863,-0.112852819263935,0.031588375568390,0.136652663350105,0.051485825330019,-0.002593884710222,-0.043546456843615,-0.152551889419556,-0.090148910880089,-0.117339156568050) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.096930854022503,0.355144172906876,-0.058752935379744,0.424856483936310) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_HQ_3x_Photo] mapping 6_5

vec4 hook()
{
vec4 res = vec4(0.152249410748482,-0.008364228531718,-0.042721789330244,-0.083203881978989);
res += mat4(0.068040519952774,-0.004376441240311,-0.070025190711021,-0.170411050319672,0.090409308671951,0.090435668826103,0.016245536506176,0.190016612410545,-0.056989714503288,-0.036876924335957,-0.038722585886717,-0.044846821576357,0.080037668347359,0.194727852940559,0.069203123450279,-0.136587575078011) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.096832573413849,-0.113608345389366,-0.013517642393708,0.235410287976265,-0.149261191487312,-0.117087870836258,-0.000668626162224,-0.108811475336552,-0.043889209628105,0.055458944290876,0.166993841528893,0.051335539668798,-0.217625156044960,0.153295516967773,0.173803925514221,-0.117271900177002) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.124971352517605,-0.108964852988720,-0.009859773330390,0.172344848513603,-0.060787606984377,0.110899433493614,0.021292865276337,-0.131314307451248,0.070067994296551,-0.045958023518324,0.017425343394279,-0.054389700293541,-0.080852270126343,-0.052609156817198,-0.025352688506246,-0.059172507375479) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.047999717295170,-0.103549845516682,-0.079654976725578,0.021671909838915,-0.020906941965222,0.012154169380665,0.058159139007330,-0.174588471651077,0.178805619478226,-0.084821455180645,-0.000686687009875,0.017403393983841,0.046369951218367,-0.064662776887417,-0.071167148649693,0.077473841607571) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.028733151033521,-0.079395882785320,-0.081198446452618,-0.009726241230965,-0.216866463422775,-0.035887669771910,-0.119017034769058,0.310408532619476,-0.005047148559242,-0.032091654837132,0.272026866674423,0.352382123470306,-0.127681955695152,0.155686467885971,-0.476164340972900,-0.192456960678101) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.006266952957958,-0.169121235609055,-0.180481612682343,-0.188250854611397,-0.081218630075455,0.081234298646450,0.007893467321992,0.051390320062637,-0.072774641215801,-0.051140975207090,-0.024836368858814,-0.092044711112976,0.031634397804737,-0.130687683820724,-0.147878810763359,0.148541271686554) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.001134802121669,-0.015733214095235,0.029835386201739,-0.021206360310316,0.130297109484673,-0.248277470469475,-0.016791660338640,-0.111849881708622,0.218085989356041,-0.036973010748625,-0.066959507763386,0.050581198185682,0.073148950934410,0.104881718754768,-0.040120664983988,-0.034240193665028) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.203657492995262,0.069442100822926,0.072580114006996,-0.089450255036354,-0.153159067034721,-0.032428290694952,0.130658745765686,-0.130614206194878,-0.158530801534653,0.050303086638451,0.170685127377510,0.200098514556885,-0.102245263755322,0.072737105190754,-0.098613716661930,0.023044453933835) * MODEL1_texOff(vec2(1,0));
res += mat4(0.008135423064232,-0.053507011383772,0.081941351294518,0.016729256138206,0.082341186702251,-0.184960350394249,0.134143233299255,0.172865897417068,-0.128481999039650,-0.139031738042831,-0.037243220955133,-0.166990146040916,0.092878699302673,-0.102760888636112,-0.033283326774836,0.034016538411379) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.025750778615475,-0.178357124328613,0.105837903916836,-0.064513579010963,-0.071763254702091,-0.222996264696121,-0.206148609519005,-0.299161791801453,-0.024218447506428,-0.029870264232159,-0.006350812967867,0.157705530524254,0.036778926849365,-0.165780305862427,-0.189038932323456,-0.039654128253460) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.194619581103325,-0.277633905410767,-0.031673483550549,0.150408267974854,-0.054734371602535,0.161797583103180,-0.057131376117468,0.004355110228062,0.060352046042681,0.037195321172476,0.039541013538837,0.036816723644733,0.211736172437668,-0.145549818873405,-0.014545275829732,0.123831123113632) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.130611225962639,-0.017189158126712,0.114168353378773,0.019917387515306,0.019963745027781,0.120352372527122,-0.070520676672459,-0.052343588322401,-0.074744649231434,0.059890501201153,-0.014421460218728,-0.100247047841549,-0.048682522028685,0.093126051127911,0.082066468894482,-0.143640220165253) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.170234054327011,-0.275319844484329,-0.039615299552679,0.014680528081954,-0.035555079579353,-0.414338856935501,0.089370146393776,-0.309747040271759,-0.035457719117403,-0.038068059831858,0.401726216077805,-0.271817922592163,-0.155073478817940,0.156988903880119,0.041334271430969,0.266630053520203) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.136767029762268,0.148289456963539,0.093025870621204,-0.023897411301732,0.230531528592110,0.033962991088629,-0.166687116026878,-0.065268553793430,-0.043088015168905,0.128126710653305,0.189062073826790,-0.087087862193584,-0.160425499081612,0.216875374317169,0.077804639935493,0.063624247908592) * MODEL2_texOff(vec2(0,0));
res += mat4(0.001834388123825,0.005221134983003,0.121165327727795,0.011746963486075,0.102204494178295,0.001888804603368,-0.011433335021138,0.113344274461269,-0.094350650906563,-0.125287041068077,0.045951243489981,-0.100340947508812,-0.107012376189232,0.015415513888001,-0.224974304437637,-0.043673377484083) * MODEL2_texOff(vec2(0,1));
res += mat4(0.099216908216476,-0.000525837589521,0.012481351383030,-0.085629560053349,-0.090545877814293,0.075327843427658,-0.036114342510700,0.102737508714199,0.095968455076218,-0.078637294471264,0.196738526225090,0.036879289895296,-0.004165745340288,-0.148573964834213,0.204460769891739,0.155064344406128) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.170204341411591,-0.081289567053318,0.117371007800102,0.094948865473270,-0.183666631579399,-0.098361186683178,-0.008710226044059,0.060794234275818,-0.010395611636341,0.181239873170853,-0.058059494942427,-0.247544109821320,0.035007812082767,0.059684138745070,0.026923066005111,-0.223932966589928) * MODEL2_texOff(vec2(1,0));
res += mat4(0.229289457201958,-0.193668395280838,0.215739727020264,0.010233347304165,-0.000310444622301,-0.125118955969810,0.101257599890232,-0.071386449038982,-0.022360024973750,-0.230420321226120,0.039917651563883,0.072184130549431,-0.016859386116266,-0.089875608682632,0.110658355057240,0.020666558295488) * MODEL2_texOff(vec2(1,1));
res += mat4(0.060254685580730,0.062678001821041,0.069569155573845,-0.113635316491127,0.075680539011955,-0.065877228975296,0.024144550785422,0.020836010575294,0.095698535442352,0.073447041213512,0.073965080082417,0.056033801287413,0.231775835156441,0.332930535078049,-0.041957594454288,-0.031354598701000) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.204295113682747,0.008994153700769,-0.015636865049601,-0.068354219198227,0.077970080077648,0.076020762324333,-0.254277914762497,-0.205478459596634,-0.078403763473034,-0.003960498142987,0.141026750206947,0.003786447225139,-0.013056351803243,0.192394062876701,0.027321046218276,0.070405893027782) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.052545182406902,0.057089164853096,-0.091264121234417,-0.056563705205917,-0.007262039929628,0.150962859392166,0.045628223568201,-0.040191814303398,0.082503810524940,-0.155403882265091,0.114015690982342,0.115290209650993,0.125725969672203,-0.008221590891480,0.100716859102249,0.096701264381409) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.405669838190079,-0.130104124546051,0.193177938461304,-0.153131917119026,-0.210043266415596,-0.008313981816173,-0.010409365408123,0.171290934085846,0.324558228254318,-0.120731972157955,0.080255873501301,0.107023514807224,0.276542872190475,0.102054789662361,-0.123100683093071,-0.075880371034145) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.099189557135105,0.159615591168404,-0.010000580921769,0.105629920959473,-0.181920826435089,-0.245895013213158,0.212166547775269,-0.382913827896118,0.163041651248932,-0.065369188785553,-0.138880386948586,0.346837669610977,-0.013708245009184,0.089568920433521,-0.183132246136665,0.256234824657440) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.034759253263474,0.028208261355758,-0.076842360198498,0.029411206021905,-0.087421335279942,0.043801318854094,0.109639875590801,-0.067138761281967,0.055521927773952,-0.007287479005754,-0.151496335864067,0.140856921672821,0.093499027192593,0.147160083055496,-0.138658598065376,0.038061149418354) * MODEL3_texOff(vec2(0,1));
res += mat4(0.352413892745972,0.046845506876707,0.056098014116287,0.007288130465895,0.072431914508343,0.096287541091442,-0.027160592377186,0.021592602133751,0.245737493038177,-0.154893696308136,-0.025101423263550,0.022516442462802,0.209474906325340,0.037499122321606,-0.116711415350437,0.156227305531502) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.269139200448990,0.067386344075203,-0.227201133966446,0.054579138755798,-0.217642828822136,0.077395334839821,0.012922763824463,0.000131339460495,-0.096338748931885,0.130030050873756,-0.161545038223267,0.201948180794716,-0.060154553502798,0.289996981620789,-0.355479061603546,0.097706161439419) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.110696285963058,0.151329472661018,-0.228412225842476,-0.087528616189957,-0.148294478654861,-0.043680742383003,-0.029602391645312,-0.035685677081347,0.107499413192272,-0.181038498878479,-0.138513550162315,0.032107889652252,-0.000991734093986,0.355171501636505,-0.202896118164063,-0.129543766379356) * MODEL3_texOff(vec2(1,1));
res += mat4(0.217986404895782,-0.022827928885818,-0.015809334814548,-0.078140124678612,0.073956415057182,-0.079747416079044,0.041868388652802,-0.140458762645721,0.101307973265648,0.063080191612244,0.059567891061306,-0.186560869216919,-0.030644921585917,0.189298227429390,-0.048135768622160,0.017432224005461) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.048251468688250,-0.064076796174049,0.036724481731653,0.124099582433701,0.019233709201217,0.022173937410116,0.084140233695507,0.030985359102488,-0.084021925926208,-0.011728050187230,0.039226185530424,-0.043021045625210,0.018357867375016,0.142919704318047,-0.036390766501427,-0.191127806901932) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.061751265078783,0.077745959162712,0.029149975627661,-0.042200855910778,0.073170788586140,-0.019610805436969,-0.113679021596909,0.136493712663651,0.012858543545008,0.053372163325548,0.087243296205997,-0.006710442248732,0.057183589786291,-0.018481392413378,-0.109099201858044,-0.077087052166462) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.012078955769539,0.090909704566002,0.025794966146350,0.034775979816914,0.319861859083176,-0.254023522138596,-0.006064612884074,-0.187724769115448,0.338241934776306,0.017277689650655,0.001132675679401,-0.076910190284252,-0.065007582306862,0.296257466077805,-0.112331323325634,-0.047274727374315) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.016790254041553,0.251261532306671,0.122899062931538,0.036204703152180,-0.131108239293098,0.182775720953941,-0.115538120269775,0.336651265621185,-0.208674520254135,-0.004304206930101,0.048416461795568,-0.022963475435972,-0.095151163637638,0.325132220983505,-0.092976897954941,-0.098147161304951) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.140614151954651,-0.087466388940811,0.138936579227448,-0.110454559326172,0.009142474271357,0.071780122816563,0.016169233247638,-0.056899998337030,0.061199378222227,-0.091327093541622,-0.176272004842758,0.048392646014690,-0.236232459545135,0.135494992136955,-0.056301869452000,-0.136807665228844) * MODEL4_texOff(vec2(0,1));
res += mat4(0.219710662961006,-0.081907242536545,-0.020560916513205,0.147670477628708,0.034338299185038,-0.055785238742828,0.058444116264582,0.125749334692955,0.159910663962364,0.044372163712978,-0.129858762025833,-0.019511399790645,0.056562975049019,-0.055848121643066,-0.003596267197281,-0.171869054436684) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.006730203516781,-0.112400382757187,-0.177290007472038,-0.262494921684265,-0.072715565562248,-0.131709054112434,0.032477717846632,0.103531971573830,-0.035674359649420,0.256619274616241,-0.048800479620695,0.001112138852477,0.089805729687214,0.176062881946564,0.040886476635933,-0.161788001656532) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.141343623399734,0.114028014242649,-0.020305041223764,-0.223160117864609,-0.138956859707832,0.107969552278519,0.013676155358553,-0.099633120000362,-0.007916281931102,0.032858338207006,-0.016254119575024,-0.006235023494810,0.031018434092402,0.086132399737835,-0.072437331080437,-0.113062307238579) * MODEL4_texOff(vec2(1,1));
res += mat4(0.029622348025441,-0.012437307275832,-0.020942021161318,0.019549403339624,0.089181765913963,-0.190503910183907,-0.010887973941863,-0.011302704922855,-0.065507814288139,0.057216636836529,-0.061574976891279,-0.132933542132378,0.092292837798595,-0.058948479592800,0.260176628828049,0.098452240228653) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.158618867397308,0.040993243455887,0.200290694832802,-0.110586397349834,-0.183977663516998,-0.059421047568321,0.155465647578239,-0.151428580284119,-0.044278889894485,0.180149048566818,0.175008445978165,-0.100395552814007,-0.067149728536606,-0.032408311963081,0.276499867439270,-0.075181797146797) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.068816065788269,-0.111433267593384,-0.144932284951210,0.104272753000259,-0.453290790319443,-0.215472564101219,-0.000933705188800,0.075990229845047,-0.204897761344910,-0.001809954294004,-0.061994552612305,0.046772670000792,0.056874830275774,-0.112312726676464,0.161541134119034,-0.032653130590916) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.024811588227749,-0.066359505057335,0.047624010592699,-0.177065402269363,-0.103764198720455,0.097053818404675,0.027056436985731,0.116671174764633,0.065424911677837,0.066201649606228,0.115505911409855,0.052831642329693,0.435151964426041,0.010795054957271,-0.224163755774498,0.142645403742790) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.011739405803382,0.158195748925209,0.064326763153076,-0.080715864896774,0.047787804156542,-0.037432406097651,0.093847803771496,0.114882603287697,-0.018944196403027,-0.033832300454378,-0.110366374254227,-0.064756125211716,0.042325120419264,0.036925517022610,-0.020523941144347,0.242243587970734) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.117928437888622,-0.111378736793995,-0.149572312831879,0.032673407346010,-0.544109642505646,0.039029691368341,-0.036374568939209,0.094539403915405,0.015189344994724,-0.001798686105758,-0.093754298985004,0.143973603844643,-0.257942914962769,0.133407309651375,-0.016836283728480,-0.203179165720940) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.099298186600208,-0.014173414558172,0.079385802149773,-0.018093723803759,0.216994598507881,-0.025416566058993,0.066519789397717,-0.065000392496586,-0.074394747614861,0.133708685636520,-0.188241228461266,0.063724510371685,-0.150928616523743,0.048426963388920,-0.133146837353706,-0.132695600390434) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.137064769864082,0.095604769885540,-0.008768390864134,-0.101558409631252,-0.285897642374039,-0.265096932649612,0.042382273823023,-0.092311128973961,0.153247445821762,-0.195581451058388,-0.002084967913106,-0.199494168162346,-0.216955810785294,0.127239882946014,-0.075922317802906,-0.183861851692200) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.117529653012753,0.232482179999352,-0.034654408693314,-0.099435418844223,-0.509358525276184,-0.134324312210083,0.043749526143074,-0.040388263761997,-0.095099352300167,-0.038003817200661,0.009913960471749,0.137772411108017,0.041704077273607,0.027620891109109,-0.042486384510994,-0.067578829824924) * MODEL5_texOff(vec2(1,1));
res += mat4(0.047991413623095,0.073117181658745,0.005076244939119,-0.182442352175713,0.013338447548449,-0.102332323789597,-0.182859823107719,0.133785247802734,0.071261376142502,0.069656990468502,0.000116710441944,-0.066264145076275,-0.055764339864254,0.077620945870876,0.075440578162670,0.004257797263563) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.168617129325867,0.030992712825537,-0.008091629482806,0.048650383949280,-0.170475050806999,-0.042260561138391,-0.206571131944656,0.079373352229595,-0.176972523331642,0.011228269897401,-0.164008244872093,0.015224358998239,0.048400744795799,-0.001981313806027,0.065785445272923,-0.031722102314234) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.014170383103192,0.135385885834694,0.102518282830715,-0.047586798667908,-0.266793191432953,-0.125625327229500,-0.075027160346508,0.105061098933220,-0.467206388711929,-0.149099200963974,-0.065440893173218,0.072744905948639,-0.040935404598713,-0.034830272197723,-0.046189591288567,-0.070150412619114) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.224346369504929,-0.145201236009598,-0.022988509386778,-0.304236203432083,-0.191457241773605,0.155476868152618,-0.043982889503241,0.322132110595703,0.055957913398743,-0.018440736457705,-0.046086546033621,-0.081711471080780,0.007599614094943,-0.238246023654938,0.046884853392839,-0.216939926147461) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.249328047037125,0.018976220861077,-0.065388143062592,0.205731466412544,-0.297041624784470,-0.205359145998955,-0.000565005175304,0.186763495206833,-0.105292320251465,0.003319258335978,-0.152630329132080,0.185439154505730,0.103055335581303,-0.183047562837601,0.038666807115078,-0.293400824069977) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.062205426394939,0.061675444245338,-0.147070646286011,0.055758662521839,-0.237797915935516,0.049941524863243,0.050449453294277,0.052885141223669,-0.203895255923271,0.176703676581383,-0.115609459578991,0.028363546356559,-0.222292184829712,0.034768745303154,0.012183852493763,0.201997071504593) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.074270613491535,-0.257021993398666,-0.061759434640408,0.038904007524252,0.025180570781231,-0.199722200632095,-0.194718018174171,0.223766401410103,0.215425074100494,-0.058479424566031,0.179256334900856,0.069788411259651,-0.053041666746140,-0.030687514692545,0.069365262985229,0.127018958330154) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.083870075643063,0.088646814227104,-0.043630965054035,0.083244971930981,-0.125768497586250,-0.065579570829868,-0.079209364950657,0.123070366680622,-0.382546454668045,0.062884390354156,-0.146980926394463,0.101614311337471,0.128600552678108,-0.114501193165779,0.137799620628357,0.125494509935379) * MODEL6_texOff(vec2(1,0));
res += mat4(0.003574672387913,-0.067593872547150,0.110574819147587,0.011699059978127,-0.213316485285759,-0.181813001632690,-0.028205448761582,-0.014376228675246,-0.444318234920502,-0.017976606264710,-0.018593776971102,-0.021626383066177,-0.154063850641251,-0.034093491733074,0.011959864757955,0.051111832261086) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.201206162571907,-0.040603078901768,-0.087845548987389,0.049313526600599) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_HQ_3x_Photo] mapping 6_6

vec4 hook()
{
vec4 res = vec4(-0.050640605390072,-0.104560047388077,-0.146555826067924,0.113710515201092);
res += mat4(-0.001432326156646,-0.008003374561667,-0.107794411480427,0.046024613082409,-0.096061632037163,0.057234056293964,0.009871296584606,-0.014449584297836,0.048006571829319,-0.069629482924938,0.051906839013100,-0.028281921520829,-0.079176180064678,-0.158352002501488,0.115692354738712,0.197561413049698) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.035985834896564,-0.054382186383009,-0.014125371351838,-0.158477842807770,-0.055654469877481,-0.069576397538185,0.143815308809280,-0.048836544156075,0.039647322148085,0.131899297237396,0.069009877741337,-0.008752016350627,-0.123386330902576,0.095868140459061,0.437527418136597,-0.201746910810471) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.002990052802488,-0.064944177865982,-0.033127274364233,0.191436067223549,-0.027392121031880,-0.042705506086349,0.158544287085533,-0.069275163114071,0.058539148420095,-0.063964381814003,0.047482196241617,0.063305959105492,-0.010739228688180,-0.012429635971785,-0.018963478505611,-0.251382917165756) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.034165982156992,0.002653421368450,-0.089634411036968,-0.007432289887220,-0.598545670509338,-0.130925506353378,0.082484990358353,-0.062661200761795,0.045823883265257,-0.017264308407903,0.064914092421532,-0.004227938596159,-0.029761968180537,0.074118927121162,-0.096141956746578,0.217437475919724) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.155724510550499,-0.013678994029760,-0.208995655179024,-0.131965994834900,0.112847328186035,0.017294537276030,0.037640437483788,0.047276765108109,-0.056850776076317,0.177586004137993,0.229788154363632,-0.005249796900898,0.355686366558075,-0.057638645172119,-0.418312430381775,-0.035658523440361) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.031046537682414,0.042843706905842,-0.325027734041214,-0.035731449723244,-0.138165429234505,-0.163836687803268,-0.177365019917488,0.142513796687126,0.075530312955379,0.068699955940247,0.057903375476599,0.071422792971134,-0.015761131420732,-0.009418344125152,-0.046235419809818,-0.171587690711021) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.003554807510227,0.075651980936527,0.027309078723192,-0.038271240890026,-0.106300808489323,0.124463655054569,-0.079445309937000,-0.011663722805679,0.096219509840012,-0.084752298891544,0.080837734043598,0.066163763403893,0.044241897761822,-0.050229854881763,0.030994413420558,0.141419708728790) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.078314453363419,0.157065331935883,0.114540375769138,-0.015562045387924,-0.179501831531525,0.084693372249603,-0.010129841975868,0.145586937665939,0.182948648929596,0.107095494866371,0.200815469026566,-0.106963276863098,0.157620742917061,0.020718706771731,-0.022684892639518,0.069924451410770) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.121752835810184,0.081550270318985,0.076708897948265,-0.079161994159222,-0.079072140157223,0.059314288198948,-0.027216946706176,-0.026902105659246,0.160935223102570,0.003991878591478,0.106068603694439,-0.041638765484095,-0.049827430397272,0.021950040012598,0.157479450106621,-0.046181257814169) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.045439325273037,-0.114697404205799,-0.060737952589989,0.021963678300381,-0.173712223768234,-0.016777519136667,-0.147275164723396,0.246182784438133,-0.034659791737795,0.112621963024139,-0.172780051827431,0.154250636696815,0.052631944417953,-0.172474339604378,0.000391542387661,-0.611275732517242) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.002855289261788,0.234462231397629,-0.238088622689247,-0.106240823864937,0.170229122042656,0.117649190127850,-0.057928871363401,-0.033466000109911,-0.022312078624964,0.147167310118675,-0.021524008363485,0.069461502134800,-0.027723502367735,0.246390908956528,-0.032853554934263,0.247719496488571) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.007228515110910,0.208855390548706,-0.157023519277573,0.219728365540504,0.032024521380663,0.083136618137360,-0.125853180885315,-0.009738646447659,-0.052785947918892,0.139977052807808,-0.110141649842262,0.065365001559258,-0.022722726687789,0.085184089839458,-0.029164727777243,-0.121463112533092) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.013257660903037,-0.066162668168545,-0.035013519227505,-0.010781205259264,-0.186298131942749,0.008234946988523,-0.095365300774574,0.073332376778126,-0.022949205711484,0.354397147893906,0.115760579705238,-0.059823758900166,-0.015575102530420,0.019714020192623,-0.102385580539703,-0.046266976743937) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.016660848632455,-0.142054811120033,-0.071509741246700,-0.058359399437904,0.131937593221664,0.080196745693684,-0.149857476353645,-0.111549451947212,-0.040216479450464,0.050068218261003,0.128251269459724,0.099917635321617,-0.158548280596733,0.075498543679714,0.355863779783249,0.132028415799141) * MODEL2_texOff(vec2(0,0));
res += mat4(0.145678192377090,-0.234481349587440,0.269543319940567,0.105565078556538,0.091727733612061,-0.000631567090750,0.082500636577606,0.091813281178474,0.014164454303682,0.166137650609016,0.055762097239494,-0.069048382341862,-0.003265959443524,-0.097626827657223,-0.031594745814800,0.059103205800056) * MODEL2_texOff(vec2(0,1));
res += mat4(0.016392249614000,0.051024563610554,0.090725876390934,0.116242788732052,-0.028774810954928,-0.017608867958188,0.002158732619137,0.064693734049797,-0.164396837353706,-0.006357901729643,0.039573211222887,0.127466782927513,-0.020270725712180,-0.058537580072880,-0.153622061014175,-0.165497571229935) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.089610144495964,0.139598920941353,-0.006289508659393,0.066132098436356,0.014061257243156,0.060577031224966,0.004993789829314,-0.032675076276064,-0.189119920134544,-0.015530434437096,0.127534002065659,-0.050496835261583,-0.059964679181576,0.061042446643114,-0.026728415861726,0.057017903774977) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.030822208151221,-0.034945394843817,-0.089971289038658,-0.019580429419875,0.054874315857887,0.118108391761780,0.013574986718595,0.026301776990294,-0.154729112982750,-0.002480060094967,-0.003809261834249,-0.040843024849892,0.006489881314337,0.126850977540016,-0.032432623207569,0.014435862191021) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.026070628315210,0.049394220113754,0.032392416149378,-0.116130217909813,0.029425425454974,-0.147927999496460,0.080893516540527,0.123058110475540,-0.009310513734818,-0.138449221849442,0.010577107779682,0.074621148407459,-0.030034083873034,-0.293147027492523,0.091406859457493,-0.126152813434601) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.000493000261486,-0.066644415259361,0.090565212070942,0.147444888949394,0.055645331740379,-0.236839413642883,0.007914392277598,0.078103438019753,0.044016905128956,-0.173462480306625,0.090934433043003,-0.040501911193132,-0.007845830172300,-0.165751352906227,0.167706266045570,-0.155277863144875) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.026984382420778,0.021736109629273,-0.026982573792338,0.045647028833628,0.050201345235109,0.067698583006859,0.103081770241261,-0.034831322729588,0.056728586554527,-0.171465456485748,0.088720008730888,0.142262265086174,-0.019434224814177,-0.052532296627760,0.081637732684612,-0.008254307322204) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.024906869977713,0.164561375975609,0.112123601138592,-0.192071065306664,0.013228430412710,0.044992767274380,0.056035771965981,-0.081050209701061,0.003116547828540,0.228404998779297,0.011281082406640,0.035433202981949,-0.000496405235026,-0.014113944023848,0.117169834673405,-0.035162393003702) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.021343449130654,0.295063585042953,0.284562021493912,-0.133279412984848,0.061099875718355,0.115137644112110,-0.209752291440964,0.030530499294400,-0.027625331655145,0.219874888658524,0.050350438803434,0.073001541197300,-0.040348853915930,0.098825983703136,0.207743227481842,-0.054279424250126) * MODEL3_texOff(vec2(0,0));
res += mat4(0.044590134173632,0.342377096414566,0.067630000412464,0.089702725410461,0.022529661655426,0.039989996701479,-0.067164920270443,-0.032323114573956,0.020767839625478,-0.010337899439037,-0.038083169609308,-0.021417981013656,-0.024359568953514,0.064089067280293,0.109841793775558,-0.049123633652925) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.080425716936588,-0.046839047223330,-0.085368566215038,-0.092613041400909,-0.052294194698334,-0.176512002944946,-0.104581594467163,-0.064534254372120,-0.040334261953831,-0.247717693448067,-0.004628235939890,0.004554617218673,-0.055958408862352,0.023216109722853,-0.015186182223260,-0.043019771575928) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.064895607531071,-0.127625674009323,0.012330034747720,-0.093705676496029,-0.029670028015971,-0.073639973998070,0.119553595781326,-0.049132104963064,0.021119385957718,-0.193601846694946,0.081714175641537,0.069041460752487,0.009665633551776,-0.060162786394358,0.007703064940870,-0.000807176926173) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.041073277592659,-0.075528405606747,0.184794172644615,0.098881572484970,0.034395374357700,0.007807889953256,0.010975197888911,-0.010250228457153,-0.005559200420976,-0.142353802919388,0.040296487510204,-0.000415538903326,-0.049372602254152,-0.042296558618546,0.127754032611847,0.027853537350893) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.044987224042416,0.240349054336548,0.090066485106945,0.081601217389107,-0.057289585471153,-0.200610265135765,-0.006344499532133,-0.032201260328293,-0.040633901953697,0.177480533719063,0.039172325283289,-0.029988517984748,0.038959864526987,-0.021409479901195,0.039252366870642,-0.175905480980873) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.001137745217420,0.192400604486465,-0.111794568598270,-0.034335330128670,-0.140194520354271,0.134870633482933,0.176596134901047,-0.038663007318974,-0.066833324730396,0.080509655177593,-0.114737011492252,-0.034830763936043,0.020954398438334,0.007633315399289,0.187569513916969,-0.075844936072826) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.039400059729815,0.049587484449148,-0.065856292843819,0.029431700706482,-0.005017464514822,0.061462659388781,0.033658009022474,0.070801705121994,-0.030078710988164,0.003392294282094,0.023529391735792,0.216652154922485,-0.015827987343073,-0.055926598608494,0.018667761236429,0.022506423294544) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.118065275251865,0.027163969352841,0.194889575242996,0.160035520792007,0.068454921245575,-0.180181711912155,-0.074264876544476,-0.165631577372551,-0.082652471959591,0.102742530405521,0.153454244136810,0.018325900658965,-0.024834495037794,0.012310772202909,0.007422878872603,0.016146143898368) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.198189452290535,0.027356596663594,0.164886400103569,0.258361726999283,0.617618441581726,-0.260255873203278,-0.247510880231857,0.357028871774673,-0.109392538666725,0.010257937014103,0.116330735385418,0.006012227386236,-0.015590058639646,0.085239507257938,0.092808023095131,0.076454676687717) * MODEL4_texOff(vec2(0,0));
res += mat4(0.031706295907497,-0.004370498005301,0.226926863193512,-0.016167424619198,0.024262940511107,0.001057480578311,0.163408502936363,-0.018256140872836,-0.017561510205269,0.198893100023270,0.172660514712334,0.042355891317129,0.019212465733290,0.125901952385902,0.166475206613541,0.040557436645031) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.127478763461113,0.027224656194448,0.032085616141558,-0.069447025656700,0.046044927090406,0.151029661297798,-0.011110318824649,-0.098844043910503,-0.024764738976955,-0.013856290839612,0.035962525755167,0.086902000010014,0.020090080797672,-0.044214826077223,-0.034641660749912,0.026610774919391) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.005397842265666,-0.126252010464668,-0.052372448146343,-0.067520879209042,-0.327946603298187,0.084386207163334,-0.021306173875928,0.030425133183599,0.003535649972036,0.080413572490215,0.094675682485104,0.031546276062727,-0.017663965001702,-0.198021769523621,0.024194093421102,0.047127459198236) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.055945396423340,0.032169867306948,-0.079454384744167,0.055355023592710,0.008056119084358,0.086957044899464,-0.132496863603592,0.035041585564613,0.018939258530736,0.234444335103035,0.233629301190376,0.023960651829839,-0.004195870831609,-0.131923124194145,0.006955881603062,0.051652908325195) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.018847774714231,-0.136960074305534,-0.065715834498405,0.007330193184316,0.048462063074112,-0.094226509332657,0.001523025683127,-0.273661702871323,0.015132808126509,-0.059059578925371,-0.056943941861391,0.050784617662430,-0.022068724036217,-0.084216825664043,0.106924504041672,0.032892160117626) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.136664167046547,0.014726917259395,0.022787308320403,-0.148863703012466,0.066561967134476,-0.170766726136208,-0.031972981989384,-0.321607440710068,-0.004124079830945,-0.196799635887146,0.116558879613876,0.014021021313965,0.019687075167894,0.211842626333237,0.240478456020355,-0.119470126926899) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.002650039037690,0.077498532831669,0.034979771822691,0.169571325182915,0.065824173390865,-0.304482817649841,-0.052613753825426,-0.235694468021393,-0.020470490679145,0.005487882532179,-0.035003174096346,-0.073245897889137,0.018594974651933,0.074698217213154,0.033546805381775,-0.103806957602501) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.033047102391720,0.139780908823013,-0.091144986450672,0.157416865229607,0.000597152858973,0.159913107752800,-0.020587835460901,-0.172244682908058,0.022682715207338,-0.173648059368134,0.003965859767050,0.132135689258575,-0.151315107941628,0.115503214299679,-0.133249923586845,-0.034713722765446) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.103747047483921,-0.103345297276974,0.253580600023270,0.081763178110123,-0.041945502161980,0.080601677298546,-0.092966467142105,-0.244024187326431,-0.122640229761600,-0.347113251686096,-0.070761963725090,0.056196138262749,-0.147426366806030,0.006258439272642,-0.056558042764664,0.022903343662620) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.061880595982075,-0.027438331395388,0.054372139275074,0.029525421559811,0.008726719766855,0.147507682442665,0.068819627165794,-0.056353975087404,-0.109939470887184,-0.222814232110977,-0.088772326707840,0.019476879388094,0.049763735383749,0.054847687482834,0.129157945513725,-0.164330914616585) * MODEL5_texOff(vec2(0,1));
res += mat4(0.071451179683208,-0.021012095734477,0.028258496895432,0.080525688827038,0.080612130463123,0.017422460019588,-0.001194621552713,-0.060190521180630,0.026863181963563,0.094666652381420,-0.085117377340794,0.138370588421822,-0.065562263131142,-0.176149740815163,0.046296536922455,-0.066933095455170) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.095055818557739,-0.006559887435287,-0.121197812259197,0.012327303178608,0.003534076735377,0.063010863959789,-0.015616705641150,-0.067230693995953,0.046194974333048,0.023824876174331,-0.043665405362844,0.175761952996254,-0.127049013972282,-0.017199026420712,0.099892653524876,-0.007598622702062) * MODEL5_texOff(vec2(1,0));
res += mat4(0.053726982325315,0.002240642905235,-0.157726615667343,-0.132656648755074,0.007804796099663,0.014805680140853,-0.082419663667679,0.006863978691399,-0.038992431014776,0.051183566451073,0.082328908145428,0.017778862267733,0.000253522128332,-0.044365316629410,-0.024673381820321,-0.002027016133070) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.035694975405931,0.132260844111443,0.024555800482631,0.069269992411137,0.034132789820433,0.007763916626573,-0.095953822135925,-0.226124927401543,-0.021409541368484,-0.121657893061638,-0.011692321859300,-0.332669824361801,-0.056880775839090,-0.141647696495056,0.000972259091213,0.057700086385012) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.012547174468637,-0.295786857604980,0.003477362683043,-0.325068086385727,-0.008874685503542,-0.284662902355194,-0.084126055240631,0.196394443511963,-0.018102070316672,-0.178651154041290,-0.016544569283724,-0.111425608396530,0.041155386716127,-0.086750894784927,0.159459054470062,0.088327392935753) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.041339676827192,-0.208441689610481,0.004816057626158,0.046011961996555,0.034722007811069,-0.206772550940514,0.178057461977005,0.020537000149488,0.007640662137419,0.002295438665897,-0.045834910124540,0.053745832294226,-0.004800331778824,-0.007316092494875,-0.022548466920853,0.022548977285624) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.077898509800434,-0.335607051849365,0.037694729864597,-0.069370061159134,0.001567811355926,0.067123837769032,0.015218934044242,-0.070356294512749,-0.032156515866518,-0.168442338705063,0.010309155099094,-0.150303572416306,-0.040789313614368,-0.048654500395060,-0.094154223799706,-0.117606289684772) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.041649524122477,0.110445544123650,0.376346647739410,-0.226733624935150,0.002792175626382,0.021573023870587,-0.125317528843880,0.012725140899420,-0.028371013700962,-0.132677122950554,0.001844676444307,-0.028463046997786,0.091125339269638,-0.279063045978546,-0.562866866588593,-0.019112361595035) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.168016493320465,0.102066934108734,-0.295266985893250,0.207084879279137,-0.017625087872148,0.155061677098274,-0.116315498948097,0.011474066413939,-0.029064998030663,-0.101506672799587,0.007721727248281,-0.066665865480900,-0.007875512354076,-0.016012828797102,0.025161867961287,0.027532909065485) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.092283919453621,0.054227009415627,-0.002238506916910,0.037531767040491,-0.007027971558273,0.035303968936205,-0.054603260010481,-0.073167271912098,-0.001193634816445,0.035967223346233,-0.074232734739780,-0.125183269381523,0.033444479107857,-0.021787775680423,0.007200628053397,-0.048675138503313) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.008546710014343,0.189151600003242,-0.036939527839422,-0.012288166210055,-0.026017900556326,-0.027381638064981,-0.085668243467808,-0.085654757916927,-0.065600253641605,-0.160302639007568,-0.050596427172422,-0.111337244510651,0.212018385529518,0.082690544426441,0.094912029802799,0.029765564948320) * MODEL6_texOff(vec2(1,0));
res += mat4(0.009613918140531,0.029174795374274,0.059862688183784,-0.003521796315908,0.039635803550482,0.003250728128478,-0.021575707942247,0.049062129110098,-0.011047666892409,-0.040855888277292,-0.094227768480778,-0.047660604119301,0.018216058611870,0.034969698637724,-0.119726479053497,-0.007258353754878) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.690418064594269,-0.074303463101387,0.165030673146248,0.049415722489357) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL1
//!DESC [AiUpscale_HQ_3x_Photo] mapping 7_1

vec4 hook()
{
vec4 res = vec4(-0.317338138818741,-0.076235383749008,-0.073854736983776,-0.175142645835876);
res += mat4(-0.007145553827286,0.054330207407475,-0.014636668376625,0.139070063829422,0.014939961023629,0.002832176396623,-0.076191686093807,0.057210452854633,0.016877379268408,0.021337259560823,-0.037237159907818,0.090257622301579,0.021782552823424,-0.004446858074516,0.022253671661019,0.131553575396538) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.004049083683640,-0.003579540178180,0.065086655318737,0.004036402795464,0.046726569533348,0.040952999144793,-0.057800050824881,-0.083534970879555,-0.064201742410660,0.010791637003422,0.076977372169495,-0.073799304664135,-0.413148403167725,0.007493569981307,-0.083943367004395,-0.150825038552284) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.035972505807877,0.155167952179909,0.052439019083977,0.120599821209908,-0.013310062699020,0.013141671195626,0.091590002179146,-0.049011487513781,-0.046278860419989,-0.024464288726449,0.088883340358734,0.018280806019902,0.110196284949780,-0.125611662864685,-0.057481080293655,0.038438156247139) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.006417439784855,-0.069763392210007,0.029595568776131,0.000056895500165,-0.002786703640595,0.066602647304535,-0.073090285062790,0.165454074740410,0.115797050297260,-0.078744634985924,-0.101811498403549,0.078246362507343,0.106766991317272,0.124612212181091,-0.121026493608952,0.255444377660751) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.062986142933369,-0.070416375994682,0.114383079111576,-0.083867982029915,0.067438483238220,0.044875808060169,-0.496590733528137,-0.088564567267895,0.002838065847754,-0.020672705024481,0.116233475506306,-0.147044211626053,-0.043152231723070,-0.157799407839775,0.118833549320698,-0.175703823566437) * MODEL7_texOff(vec2(0,0));
res += mat4(0.060547474771738,0.022519461810589,0.023894602432847,0.060310490429401,0.053866621106863,-0.035606134682894,0.095717206597328,-0.035900671035051,-0.087185628712177,-0.049001980572939,-0.068011634051800,0.160230338573456,0.110736027359962,-0.081897214055061,0.008009167388082,0.111010022461414) * MODEL7_texOff(vec2(0,1));
res += mat4(0.021594926714897,-0.274921476840973,0.111204832792282,0.133033230900764,0.004392165224999,-0.345813572406769,-0.079327493906021,-0.079665139317513,-0.035611007362604,0.048514712601900,0.054073210805655,-0.068078778684139,0.057179678231478,-0.166174083948135,0.147216171026230,0.045639883726835) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.178272500634193,-0.217196375131607,-0.126092568039894,0.034786567091942,-0.115705244243145,-0.154037386178970,-0.072965882718563,-0.072529755532742,0.123447559773922,0.076744981110096,-0.025568844750524,0.329445213079453,0.050752338021994,-0.145427763462067,0.024104977026582,0.035508558154106) * MODEL7_texOff(vec2(1,0));
res += mat4(0.220295518636703,-0.059153784066439,-0.049203801900148,-0.021458640694618,0.063666217029095,-0.077899321913719,0.093643479049206,-0.079632617533207,-0.008431575261056,-0.283795505762100,0.039859242737293,0.111814871430397,0.054294716566801,-0.049255732446909,0.046121809631586,-0.056714665144682) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.083853147923946,0.029089851304889,0.025633672252297,0.135498017072678,-0.243801832199097,0.027744671329856,-0.044526692479849,0.104751251637936,-0.031130589544773,-0.001358991023153,-0.018208451569080,0.045500461012125,-0.103777199983597,0.098805673420429,0.031241450458765,0.003503014799207) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.114255934953690,-0.003847097279504,0.044456388801336,0.070097319781780,0.266752213239670,-0.137245565652847,-0.005039094947278,-0.111723400652409,0.066858522593975,-0.094338446855545,0.006228117737919,0.021744070574641,0.049274850636721,-0.132926389575005,-0.059158291667700,0.094721429049969) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.113719269633293,0.048685885965824,-0.058293897658587,-0.085194580256939,-0.062858015298843,-0.077966302633286,0.059034410864115,0.088683366775513,-0.037636995315552,-0.012402496300638,-0.017222072929144,-0.054655555635691,-0.048173323273659,-0.058555871248245,-0.069501087069511,-0.001073248800822) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.148984178900719,0.025869755074382,-0.076137162744999,0.316708922386169,0.041336212307215,-0.068717584013939,0.118294909596443,-0.158768206834793,0.112538136541843,0.043681394308805,0.023154452443123,-0.044921878725290,-0.110392905771732,0.134870886802673,0.004622915759683,-0.068382680416107) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.013380638323724,-0.026628913357854,-0.152122035622597,-0.165072754025459,-0.207300066947937,0.157375201582909,-0.142529040575027,-0.093908116221428,0.073557540774345,0.108373843133450,-0.023175468668342,0.168879047036171,-0.295942038297653,0.190172597765923,0.082700259983540,-0.011981311254203) * MODEL8_texOff(vec2(0,0));
res += mat4(0.063095904886723,0.001498403726146,-0.053432151675224,0.082544595003128,0.023987032473087,0.077315971255302,0.018187562003732,-0.057884532958269,0.004054456017911,-0.024666061624885,-0.017437480390072,-0.036746341735125,0.052463825792074,0.053569827228785,0.024085354059935,0.087544478476048) * MODEL8_texOff(vec2(0,1));
res += mat4(0.053712021559477,-0.015309645794332,0.065107040107250,0.251181870698929,-0.068648457527161,0.021636420860887,0.071812234818935,-0.019933767616749,-0.081835865974426,0.087972633540630,0.005611598491669,0.003455446101725,-0.057738233357668,0.038952693343163,0.069607533514500,-0.017113860696554) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.125298529863358,-0.095128692686558,0.039860472083092,0.123490691184998,0.060384999960661,0.195007026195526,0.060788013041019,0.096309378743172,0.089449018239975,0.199832171201706,-0.118683464825153,-0.445619165897369,0.093391999602318,0.023682171478868,-0.102833457291126,0.066412769258022) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.040104296058416,0.219777688384056,-0.025893125683069,-0.051114123314619,-0.102469518780708,-0.010579077526927,-0.087029531598091,0.067056462168694,0.061722617596388,0.093452490866184,0.035035707056522,-0.056783393025398,0.013016224838793,-0.030160862952471,-0.048782516270876,-0.040733087807894) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.061701398342848,-0.001585526275449,0.009360464289784,-0.053790777921677,-0.076034165918827,-0.085532173514366,0.211585000157356,-0.202162131667137,-0.107256382703781,0.038942996412516,-0.047788303345442,-0.046978402882814,-0.050024699419737,0.054863288998604,0.052461784332991,0.044470869004726) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.010280053131282,0.052316032350063,0.006062675733119,-0.091046102344990,-0.101198069751263,0.070402868092060,0.049437329173088,0.076167926192284,-0.065371274948120,0.173866212368011,-0.069457784295082,0.036578476428986,-0.110825382173061,0.017082424834371,0.041686262935400,0.042076032608747) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.003341250587255,-0.063551522791386,-0.065230756998062,0.038758318871260,-0.059123780578375,0.085147723555565,-0.046349477022886,0.134902864694595,0.044125989079475,0.067967236042023,-0.041823409497738,0.055663011968136,0.092416487634182,0.072867505252361,0.154994636774063,-0.056676726788282) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.037475395947695,-0.139922589063644,0.050389666110277,-0.137894913554192,-0.168936878442764,0.102273412048817,0.324927121400833,-0.199326738715172,-0.018325915560126,-0.102866478264332,-0.000150981926708,-0.070548385381699,-0.153112381696701,-0.034006595611572,-0.093060106039047,0.120381042361259) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.361651360988617,-0.322987735271454,-0.131369739770889,0.320453971624374,-0.108075954020023,-0.256042033433914,0.008089718408883,0.318647861480713,0.089275099337101,-0.201010704040527,-0.014463720843196,0.051862958818674,0.334315061569214,0.179212957620621,-0.089527212083340,-0.648505747318268) * MODEL9_texOff(vec2(0,0));
res += mat4(0.032159592956305,0.076434940099716,-0.264459401369095,0.131725296378136,-0.049959845840931,0.030444420874119,-0.032319653779268,0.012291915714741,0.172690376639366,-0.017878614366055,-0.104847885668278,-0.107595406472683,-0.340375572443008,-0.051482681185007,0.363653093576431,0.019819067791104) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.054906040430069,0.028455914929509,0.024548422545195,0.070255741477013,-0.110909171402454,-0.083165034651756,0.033405628055334,-0.087228462100029,0.082525625824928,0.073456287384033,-0.067427359521389,-0.098416067659855,-0.020725866779685,0.044775441288948,-0.015609887428582,0.039285220205784) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.074029102921486,0.036673247814178,-0.002505773678422,0.090106047689915,0.069012649357319,-0.004174028523266,0.019644735381007,0.040977716445923,0.190013736486435,0.233093768358231,0.031225187703967,0.009168945252895,0.113206289708614,-0.073481336236000,-0.099416367709637,-0.144781365990639) * MODEL9_texOff(vec2(1,0));
res += mat4(0.121352791786194,0.078982695937157,0.025168946012855,0.052037268877029,-0.024121744558215,0.020022548735142,0.046159662306309,0.031151801347733,-0.063003040850163,-0.110402949154377,-0.086609385907650,-0.026691306382418,0.005425182171166,0.033065460622311,0.076609291136265,-0.037310991436243) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.146801963448524,-0.007807908114046,-0.047220684587955,0.243119567632675,-0.170562773942947,0.206080511212349,0.169665679335594,-0.025019807741046,0.028587469831109,0.160902932286263,0.001073074992746,-0.097568750381470,-0.210434406995773,0.035326052457094,0.013162732124329,0.002616042504087) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.029811138287187,-0.138650000095367,-0.050337933003902,0.055080201476812,0.139830484986305,0.081856966018677,-0.044099006801844,-0.080623358488083,-0.000645702239126,0.056704401969910,-0.008247798308730,0.145313113927841,0.026646301150322,-0.051910374313593,0.015003003180027,0.011582284234464) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.009117963723838,-0.045622497797012,-0.033632028847933,0.002645330270752,0.026190098375082,0.107082165777683,-0.029668970033526,-0.141120016574860,-0.087635554373264,0.037466183304787,0.009978102520108,0.002921147737652,-0.061870429664850,-0.049964301288128,-0.009710635989904,-0.094941563904285) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.036009304225445,0.106270194053650,0.108611539006233,0.073826596140862,-0.058119684457779,-0.117046549916267,0.194948509335518,0.163402989506721,-0.135664284229279,-0.111782744526863,0.047025229781866,-0.243780091404915,-0.142202958464622,0.129333838820457,0.137647047638893,0.131275892257690) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.231538385152817,0.011321387253702,-0.122119136154652,-0.002348178299144,-0.102361306548119,-0.081877440214157,-0.302158772945404,-0.003762106178328,0.123839281499386,0.040852386504412,-0.102532781660557,0.246386632323265,0.078992463648319,0.034696545451880,-0.298537194728851,0.149583175778389) * MODEL10_texOff(vec2(0,0));
res += mat4(0.164311900734901,-0.015070065855980,0.210060164332390,0.031489614397287,-0.016923736780882,0.057752363383770,0.016025774180889,-0.037497486919165,0.022047504782677,0.109922245144844,0.075807683169842,-0.059774629771709,0.052339080721140,-0.091552831232548,-0.011403318494558,-0.071635954082012) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.154257252812386,-0.428112924098969,0.026660392060876,0.222309991717339,-0.066709995269775,-0.030509354546666,0.033049307763577,0.117152608931065,0.103478543460369,-0.096214316785336,-0.002348904032260,-0.062702953815460,-0.056219238787889,-0.048915471881628,-0.017880059778690,0.007449741009623) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.014763585291803,-0.046993438154459,-0.238066539168358,0.056996297091246,0.104665957391262,0.121126748621464,-0.018116496503353,0.034462515264750,-0.080038495361805,-0.138800904154778,-0.088611654937267,-0.037599213421345,-0.026712704449892,-0.378420025110245,-0.002914648735896,-0.067483790218830) * MODEL10_texOff(vec2(1,0));
res += mat4(0.022490181028843,0.004357760772109,0.118066549301147,0.007164223119617,0.035913389176130,0.004499339498580,0.002686205320060,0.037513352930546,0.072814822196960,0.035853810608387,-0.084295168519020,-0.013690058141947,-0.005073959939182,-0.021335406228900,-0.054108884185553,-0.002771752653643) * MODEL10_texOff(vec2(1,1));
res += mat4(0.039096102118492,-0.029025783762336,-0.008415660820901,0.110042534768581,0.066528372466564,0.077320031821728,-0.032931827008724,0.009975621476769,-0.040800977498293,0.013111678883433,0.097954362630844,0.012763140723109,0.049656074494123,-0.025085385888815,0.061063513159752,-0.022815773263574) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.062084436416626,-0.020097292959690,0.029809070751071,0.071026243269444,0.108680322766304,-0.142496183514595,0.047884140163660,0.086580790579319,-0.145852580666542,0.033271849155426,-0.043235454708338,0.072693780064583,0.099527135491371,0.050249777734280,-0.078839883208275,-0.012361777015030) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.084959201514721,0.019531741738319,-0.220828846096992,0.067151606082916,0.006615925114602,0.006121478974819,-0.123595707118511,0.070102393627167,0.021245302632451,-0.039161760360003,0.059517923742533,0.176020354032516,0.034143552184105,0.063938297331333,-0.118921510875225,-0.036785844713449) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.087897635996342,0.143121853470802,0.002749338978902,-0.010939797386527,0.156818002462387,0.006973041221499,-0.002570912241936,-0.036103300750256,-0.133665263652802,0.044090494513512,0.096410728991032,0.150230839848518,0.123613283038139,-0.059191577136517,0.039440874010324,0.183359980583191) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.101512953639030,0.063105985522270,0.038914117962122,0.156634837388992,0.036552578210831,0.154774308204651,0.049024887382984,-0.132268443703651,0.083560973405838,0.006129393819720,-0.143053144216537,0.153764590620995,0.125446602702141,-0.322640776634216,0.089264884591103,-0.381226181983948) * MODEL11_texOff(vec2(0,0));
res += mat4(0.174206748604774,-0.017762381583452,-0.178166717290878,-0.076294332742691,-0.064251817762852,-0.006543506868184,0.116956375539303,0.035557292401791,0.003028699895367,-0.088601946830750,-0.031606826931238,0.070253722369671,-0.097473777830601,0.086496703326702,0.183255314826965,0.017529312521219) * MODEL11_texOff(vec2(0,1));
res += mat4(0.035480830818415,0.123385414481163,0.012995514087379,0.068334631621838,-0.064525231719017,-0.031306676566601,0.031631335616112,-0.074746392667294,0.016669629141688,-0.024957314133644,0.112640410661697,0.101944237947464,0.091199435293674,0.000113297479402,-0.121000081300735,0.098035402595997) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.061809416860342,-0.011603102087975,-0.039394509047270,0.184786364436150,-0.000146617181599,-0.058782935142517,-0.052272189408541,-0.009063207544386,-0.071280092000961,-0.109547175467014,0.022913401946425,0.149892017245293,-0.107833966612816,0.010658849030733,0.129123732447624,-0.117970362305641) * MODEL11_texOff(vec2(1,0));
res += mat4(0.097625359892845,-0.052872464060783,-0.166902258992195,-0.009016585536301,0.115915037691593,-0.011347402818501,-0.091354027390480,0.003765277564526,0.143834322690964,-0.078661046922207,-0.119710385799408,0.080971710383892,0.013424197211862,-0.079657942056656,0.045722745358944,0.030990121886134) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.034178502857685,-0.020614562556148,0.033608086407185,-0.010105136781931,0.004730889108032,0.073606379330158,-0.006700527388602,0.042340848594904,0.039414923638105,-0.015693390741944,-0.016922494396567,-0.133854806423187,-0.041486151516438,-0.011910865083337,0.076476171612740,-0.001283432706259) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.068106994032860,-0.022377548739314,-0.007166572380811,-0.064451895654202,-0.123180091381073,0.068157352507114,0.018635928630829,-0.107685141265392,-0.005837576929480,0.108421102166176,0.017500054091215,0.109969973564148,-0.105591163039207,0.059590157121420,-0.101889319717884,0.081529065966606) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.007224373053759,-0.047692891210318,0.031894937157631,-0.026989903301001,0.032145366072655,0.069867089390755,0.060789104551077,0.065161079168320,0.022158266976476,-0.017360290512443,-0.073523938655853,-0.094771102070808,0.036498755216599,-0.024469189345837,0.080211453139782,0.077197059988976) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.157030597329140,-0.216550543904305,-0.001933380379342,0.181632936000824,-0.108465239405632,-0.032383721321821,-0.041283879429102,0.127134323120117,-0.005817131139338,0.039033971726894,-0.062863402068615,-0.199830248951912,-0.150720879435539,0.093488022685051,0.021299654617906,-0.144298866391182) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.335732787847519,-0.492144256830215,0.277214527130127,0.301129877567291,0.032647840678692,-0.021825103089213,0.113286949694157,0.126248419284821,-0.201876804232597,0.020032638683915,0.028558615595102,-0.319713354110718,0.127835705876350,-0.056718360632658,-0.065371155738831,0.209514528512955) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.101821631193161,-0.012791180983186,-0.342033803462982,0.038895152509212,0.002434196881950,-0.168321445584297,0.162429794669151,0.075154997408390,-0.014683364890516,0.004429017659277,0.067936591804028,-0.055127266794443,0.062914572656155,-0.062055125832558,0.001434195437469,-0.027764299884439) * MODEL12_texOff(vec2(0,1));
res += mat4(0.012772770598531,-0.038560084998608,-0.021480878815055,0.016492282971740,0.029734469950199,0.052632883191109,-0.056032370775938,0.109979890286922,-0.085119143128395,0.110671691596508,0.019012527540326,-0.076206780970097,0.038016505539417,-0.053203187882900,0.188068896532059,-0.241340890526772) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.135469079017639,0.031178740784526,0.039467852562666,-0.020074343308806,-0.065002404153347,0.045568175613880,0.073511280119419,-0.005164051428437,0.098821386694908,0.263245820999146,0.037507582455873,-0.133878245949745,-0.042032007128000,0.151630252599716,-0.264626413583755,0.171439111232758) * MODEL12_texOff(vec2(1,0));
res += mat4(0.039920058101416,0.027509227395058,-0.075800903141499,0.076442718505859,0.047299433499575,0.067697800695896,-0.140680998563766,0.018756570294499,0.052202291786671,-0.031211731955409,-0.066780075430870,0.008985975757241,0.016340021044016,0.040928333997726,0.126051932573318,0.039551232010126) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.305805206298828,-0.002423157915473,-0.202341482043266,-0.020270416513085) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL2
//!DESC [AiUpscale_HQ_3x_Photo] mapping 7_2

vec4 hook()
{
vec4 res = vec4(-0.281903058290482,0.031489580869675,-0.196799620985985,-0.243297159671783);
res += mat4(-0.012764160521328,-0.087591879069805,0.027201149612665,0.024871727451682,0.035157192498446,0.004855742678046,0.039803616702557,0.107833303511143,-0.120787918567657,-0.022182425484061,0.128876492381096,-0.061267789453268,-0.233052790164948,-0.046832285821438,0.190410673618317,-0.166134774684906) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.002601141808555,-0.022941332310438,-0.133132427930832,0.154090970754623,-0.000669871573336,0.012646841816604,-0.026914952322841,0.058829639106989,0.089689165353775,0.179880410432816,0.003994481172413,0.181904733181000,0.190682068467140,-0.001096752588637,-0.079708300530910,0.132056429982185) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.154865682125092,-0.051983445882797,0.082087628543377,-0.139664113521576,-0.029209719970822,-0.013220601715147,0.013889555819333,0.018906656652689,-0.075776301324368,0.096089228987694,-0.046131584793329,-0.128385126590729,0.143913999199867,0.251822263002396,-0.119337856769562,-0.092174746096134) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.090304546058178,-0.013852139934897,0.035832319408655,-0.127328693866730,-0.407855421304703,-0.006500659976155,-0.256246775388718,0.394326001405716,0.024373704567552,0.164464816451073,0.081455290317535,-0.004375639837235,-0.108701869845390,0.163726121187210,-0.084105849266052,-0.176241159439087) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.026079876348376,0.051653042435646,0.026908293366432,0.096541360020638,0.045689690858126,-0.077762372791767,-0.182503804564476,0.197311580181122,0.019798241555691,-0.085228487849236,0.056604612618685,0.257419615983963,-0.211008638143539,-0.060861580073833,-0.035372834652662,0.162123739719391) * MODEL7_texOff(vec2(0,0));
res += mat4(0.192899048328400,0.035930573940277,0.019382273778319,-0.071003206074238,0.053834158927202,-0.042729794979095,0.056758712977171,0.044274590909481,0.046785827726126,0.067399725317955,-0.014165970496833,-0.089871756732464,0.120659865438938,0.250160485506058,-0.009078520350158,-0.027657806873322) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.211375355720520,0.021730391308665,0.010244815610349,0.091816201806068,-0.027852101251483,-0.026834717020392,0.098105020821095,0.051144979894161,-0.005775514058769,0.032188341021538,-0.015135590918362,0.107931651175022,0.005178938619792,0.117309875786304,0.072224989533424,0.032338891178370) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.120348788797855,-0.113548971712589,-0.133382081985474,0.085791647434235,0.078037276864052,0.057996973395348,-0.034558143466711,-0.010418204590678,0.146924912929535,-0.064938038587570,0.253927886486053,-0.058963652700186,0.027233852073550,0.281263917684555,-0.022587677463889,-0.016977475956082) * MODEL7_texOff(vec2(1,0));
res += mat4(0.198211073875427,-0.005650356411934,-0.164600834250450,0.025842802599072,-0.071725897490978,-0.105191938579082,-0.004778454545885,0.052118983119726,0.002915959805250,-0.207104921340942,0.184604465961456,-0.004137142561376,0.012099116109312,-0.054497640579939,-0.025233717635274,-0.044565554708242) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.030482558533549,0.061001949012280,0.034387942403555,0.060238346457481,-0.027825145050883,0.108142986893654,-0.213580012321472,-0.057674556970596,-0.004688890185207,0.062046241015196,0.029799796640873,-0.009865605272353,-0.002860829699785,-0.038182687014341,0.045767933130264,0.029644267633557) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.044119391590357,-0.104002319276333,0.045185163617134,-0.040676869452000,0.026053173467517,0.031620021909475,0.236182913184166,-0.117146044969559,0.088972516357899,-0.060922205448151,0.388620495796204,-0.093336060643196,0.134020730853081,0.168156728148460,0.161755770444870,-0.205772757530212) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.017032917588949,-0.125943958759308,-0.161985978484154,0.058324575424194,0.038555257022381,0.066544331610203,0.008446031250060,-0.016041051596403,-0.046079497784376,-0.067116782069206,-0.054608438163996,0.008468875661492,-0.178381562232971,-0.102457083761692,0.115496277809143,0.038242556154728) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.438504844903946,0.106882117688656,0.138681367039680,0.161996334791183,0.118334665894508,0.099493414163589,-0.000652241404168,-0.005102539435029,-0.146595895290375,-0.123986862599850,0.097193300724030,-0.207119569182396,0.057049565017223,0.067801505327225,0.142071783542633,0.005576104391366) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.030489895492792,-0.294007629156113,-0.218096628785133,0.152040094137192,0.234534516930580,0.208720698952675,-0.107627019286156,-0.349637269973755,-0.125003337860107,0.143960043787956,0.047044076025486,-0.227939248085022,0.103509508073330,0.083340704441071,-0.133448809385300,0.001611577579752) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.006222773808986,-0.200578004121780,-0.029060574248433,0.028513018041849,-0.167551353573799,-0.095013275742531,-0.237764567136765,0.203779950737953,0.146745100617409,0.007128312718123,0.040032174438238,-0.039759851992130,-0.348885834217072,-0.149412900209427,-0.299288272857666,0.110560350120068) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.011569193564355,-0.030209008604288,0.059026226401329,0.030984658747911,0.069837026298046,0.071756914258003,-0.086240231990814,0.010247027501464,0.065967559814453,-0.104764789342880,-0.058985263109207,0.089226685464382,0.075412683188915,0.007180178537965,-0.023752871900797,0.052754282951355) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.062997229397297,-0.109364353120327,0.122013688087463,-0.055574975907803,-0.140176996588707,0.127334237098694,0.042733766138554,0.090673513710499,-0.074736416339874,0.094831109046936,-0.092156387865543,0.162500500679016,-0.054710514843464,-0.061589241027832,-0.041836790740490,-0.107991822063923) * MODEL8_texOff(vec2(1,0));
res += mat4(0.078719988465309,-0.054156102240086,0.155878469347954,-0.080317251384258,0.071424730122089,0.106788001954556,0.143659263849258,-0.032632216811180,0.000585287925787,-0.014853724278510,0.055958665907383,0.030561784282327,-0.061228092759848,-0.099047273397446,0.039035536348820,0.011387825943530) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.003831631503999,0.022653821855783,-0.060468070209026,0.001178479637019,0.227102085947990,-0.126500740647316,0.008396392688155,-0.088551215827465,-0.008407813496888,-0.024446303024888,0.009613296017051,0.037516869604588,0.090923562645912,-0.006377698853612,0.073727451264858,-0.056755643337965) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.130479618906975,0.083143822848797,-0.029339766129851,0.036912616342306,-0.084201522171497,-0.102628141641617,0.032235872000456,0.161692932248116,-0.065833628177643,-0.086841225624084,-0.255834102630615,0.035465478897095,-0.015739848837256,-0.057982657104731,0.070444479584694,-0.119920432567596) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.055929649621248,0.062900170683861,0.049248073250055,-0.092512212693691,0.087738096714020,-0.087982162833214,0.083759993314743,-0.004984022118151,0.087994128465652,-0.050791125744581,-0.016280593350530,0.098827727138996,-0.051669750362635,0.000026820503990,-0.079453401267529,0.062586061656475) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.211564183235168,-0.112435318529606,0.141007646918297,0.031062932685018,0.240211695432663,-0.024704625830054,0.071808055043221,0.149848222732544,-0.284149706363678,-0.012630757875741,0.009334244765341,-0.009835270233452,-0.106454871594906,0.107605591416359,0.092895671725273,-0.206450551748276) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.191071838140488,-0.562738120555878,-0.087293423712254,0.219363033771515,0.102460317313671,0.040887977927923,-0.046038471162319,-0.097533889114857,0.284228742122650,-0.085356190800667,0.052155215293169,-0.074575625360012,0.190917477011681,0.008103455416858,-0.224293574690819,-0.064405612647533) * MODEL9_texOff(vec2(0,0));
res += mat4(0.078803688287735,0.105881966650486,-0.026381723582745,-0.039653565734625,-0.003514979034662,0.013401960022748,-0.302405357360840,0.146638482809067,-0.133504882454872,-0.105496019124985,-0.089837625622749,0.212789058685303,-0.043898776173592,0.055227559059858,0.076488219201565,-0.140022426843643) * MODEL9_texOff(vec2(0,1));
res += mat4(0.058576643466949,-0.015900373458862,-0.028069131076336,-0.026978414505720,0.135540455579758,-0.099278196692467,0.055935196578503,-0.012836808338761,0.102449536323547,0.080365739762783,-0.110443741083145,0.034520264714956,-0.070405878126621,-0.001775122131221,-0.047648578882217,-0.016560722142458) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.018318774178624,0.024113440886140,-0.074093058705330,-0.017909804359078,0.052117552608252,-0.109614133834839,-0.168444648385048,0.036232471466064,-0.061664719134569,-0.197137147188187,0.086861118674278,0.182137295603752,-0.104724623262882,0.020292272791266,0.046312939375639,-0.004102546256036) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.049177430570126,-0.035974815487862,-0.068020969629288,0.014235666021705,0.045510180294514,-0.116467021405697,0.116403006017208,0.060248907655478,0.041202198714018,0.074188008904457,0.091381333768368,-0.034845702350140,0.094400830566883,-0.068326458334923,-0.089749895036221,0.035324927419424) * MODEL9_texOff(vec2(1,1));
res += mat4(0.010549796745181,0.046355124562979,0.017902109771967,-0.001750377123244,-0.001849490683526,0.100468792021275,-0.000957557815127,0.101792253553867,-0.103810705244541,0.072971060872078,-0.198112413287163,0.017261603847146,-0.021002113819122,0.049928683787584,-0.067923955619335,0.077614359557629) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.065059296786785,-0.067811660468578,0.100922539830208,0.074051037430763,-0.022655328735709,-0.012741172686219,0.054524865001440,0.191997215151787,0.046179205179214,-0.034053407609463,-0.079298168420792,0.006547451484948,0.170648515224457,-0.041360814124346,0.326749414205551,-0.037105847150087) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.019614897668362,-0.032857608050108,0.046232372522354,-0.034777522087097,0.064837455749512,0.086501024663448,0.012882522307336,0.005985985510051,-0.046298105269670,0.029088359326124,-0.115626849234104,0.053579129278660,-0.102787710726261,-0.090492472052574,0.021844265982509,-0.049295082688332) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.153087601065636,-0.174089759588242,-0.337079524993896,-0.305161207914352,-0.108549021184444,-0.139363482594490,-0.164800092577934,-0.011371025815606,0.094669848680496,-0.034059811383486,-0.030245782807469,0.185762450098991,-0.082042872905731,-0.084476590156555,0.147499367594719,-0.082634754478931) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.002476976718754,0.069838754832745,-0.199682593345642,-0.116708591580391,0.128533169627190,-0.021190291270614,-0.090523496270180,-0.051573980599642,0.000112690227979,-0.117783628404140,-0.085101455450058,0.098283223807812,-0.463251888751984,-0.056619424372911,-0.323504954576492,0.194682657718658) * MODEL10_texOff(vec2(0,0));
res += mat4(0.101348280906677,0.090305797755718,0.014408049173653,-0.035838056355715,-0.009515617974102,0.057569433003664,0.067073263227940,-0.032944910228252,0.061203330755234,0.004477083683014,-0.019515560939908,0.055739890784025,0.137365117669106,0.070161044597626,0.177217096090317,0.026844277977943) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.069016225636005,-0.270036876201630,0.062415033578873,-0.244899392127991,0.088975317776203,0.036455012857914,0.074786148965359,0.040232446044683,-0.049770940095186,-0.274065494537354,0.002758439397439,0.066880553960800,-0.003047786420211,-0.105020031332970,0.086861021816730,-0.058446064591408) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.030159585177898,-0.055487066507339,-0.028980022296309,-0.090613372623920,-0.079148478806019,-0.093773275613785,-0.134142458438873,0.092030540108681,-0.009850642643869,-0.008561888709664,-0.059275828301907,-0.048653420060873,-0.052235949784517,0.073026694357395,-0.079919323325157,-0.052356828004122) * MODEL10_texOff(vec2(1,0));
res += mat4(0.132893726229668,-0.059969849884510,0.022437589243054,0.038540188223124,0.046348627656698,0.003445758251473,0.033767726272345,0.018708359450102,-0.077479653060436,-0.046962719410658,-0.118884459137917,0.069644398987293,0.068437412381172,0.089744620025158,-0.046992734074593,-0.015889590606093) * MODEL10_texOff(vec2(1,1));
res += mat4(0.118411116302013,-0.021209148690104,0.308307230472565,-0.005095055792481,-0.125631600618362,0.029272794723511,0.016756894066930,-0.047334179282188,0.086343735456467,-0.089466027915478,-0.153326958417892,-0.021926853805780,0.052410908043385,0.034471079707146,0.042155314236879,0.057069201022387) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.128198161721230,-0.027200507000089,0.064197435975075,0.039231631904840,0.133159056305885,-0.135517254471779,0.177251294255257,0.113030411303043,-0.033626239746809,-0.101829186081886,-0.135881006717682,0.037086088210344,0.048091024160385,0.073148488998413,-0.278299868106842,-0.075124897062778) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.242669522762299,-0.084882430732250,0.006125506013632,0.005631789565086,-0.056030716747046,-0.168042227625847,-0.055805075913668,-0.057839661836624,0.067712895572186,-0.053271953016520,-0.003905770834535,0.022704856470227,0.005385393742472,0.039887595921755,-0.127293169498444,0.009889428503811) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.126397445797920,0.007552063558251,0.093849405646324,0.058685291558504,-0.022367583587766,0.040910467505455,0.019171811640263,0.076350182294846,0.007720584981143,0.045746441930532,-0.115422904491425,0.163698583841324,0.127007052302361,-0.036769773811102,0.015189628116786,-0.122480466961861) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.119181178510189,-0.176763013005257,0.043890722095966,0.265229433774948,0.139691352844238,-0.141871795058250,0.072249576449394,-0.022365676239133,0.006771225482225,-0.256699919700623,-0.156979113817215,0.054161090403795,0.245836153626442,0.119438499212265,-0.019947903230786,-0.103300839662552) * MODEL11_texOff(vec2(0,0));
res += mat4(0.118673808872700,-0.093673944473267,0.088021315634251,0.049600906670094,0.035154279321432,0.055799409747124,0.101621888577938,-0.033637735992670,0.078254200518131,0.082410506904125,-0.136202260851860,0.020705606788397,0.063218124210835,0.071112371981144,0.233704820275307,-0.069028958678246) * MODEL11_texOff(vec2(0,1));
res += mat4(0.240316033363342,0.010763091966510,-0.057800870388746,0.061406970024109,0.165535524487495,-0.100831545889378,0.101320244371891,-0.082363642752171,-0.139090493321419,-0.091563470661640,0.048294670879841,-0.041653718799353,-0.041015375405550,0.240533813834190,0.062036644667387,-0.092438012361526) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.022133756428957,-0.001122391549870,0.067046180367470,0.069602698087692,0.146963134407997,-0.076690383255482,0.043676275759935,-0.038084682077169,0.112275741994381,-0.077929355204105,-0.051760785281658,-0.106808096170425,-0.049477756023407,0.040154367685318,0.096047393977642,0.148501008749008) * MODEL11_texOff(vec2(1,0));
res += mat4(0.038281615823507,0.082894198596478,-0.005821531172842,0.073376722633839,-0.094246521592140,-0.140138521790504,0.105078443884850,0.096632920205593,0.155365690588951,-0.140116795897484,-0.076360672712326,0.135827600955963,0.033994726836681,0.051849711686373,-0.121997848153114,-0.054119329899549) * MODEL11_texOff(vec2(1,1));
res += mat4(0.051579404622316,-0.021976862102747,-0.014883321709931,-0.159005790948868,-0.047814030200243,-0.030598761513829,-0.060581069439650,0.041575446724892,0.037297852337360,0.039395779371262,0.163434401154518,-0.045638684183359,0.043470054864883,0.005325409583747,0.106642834842205,0.041725676506758) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.120309963822365,0.155143499374390,-0.215810626745224,-0.183990985155106,-0.065707810223103,-0.007240025792271,-0.134301945567131,0.035491719841957,0.015029675327241,0.021201567724347,-0.017081227153540,-0.013483527116477,-0.055065654218197,0.017015770077705,0.128657981753349,-0.126349091529846) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.001455320045352,-0.014881731010973,0.002128928201273,-0.031017880886793,0.006441129837185,-0.054846044629812,-0.036700587719679,-0.041220650076866,-0.045589447021484,-0.041397489607334,-0.172950521111488,-0.025870043784380,0.052095819264650,0.016723886132240,0.074167802929878,0.023250050842762) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.222926214337349,0.105754040181637,0.142691656947136,-0.293558895587921,-0.006110745016485,0.028595713898540,0.095054276287556,-0.013014637865126,0.058112204074860,0.160779237747192,-0.017010850831866,-0.253292948007584,0.028153164312243,-0.066848658025265,-0.096419617533684,0.138004973530769) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.192793771624565,-0.007565237116069,0.148150756955147,-0.248582080006599,0.072651110589504,0.042086292058229,0.140345439314842,-0.003251626854762,-0.159935176372528,-0.144437640905380,-0.020524866878986,-0.075805597007275,0.009061707183719,-0.014607227407396,0.092743583023548,0.014355137012899) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.042542461305857,-0.120692737400532,-0.156100347638130,0.076348736882210,-0.058422952890396,-0.040436234325171,0.137904509902000,-0.040706127882004,-0.023941539227962,0.132061451673508,0.277108341455460,-0.088534578680992,-0.046849902719259,0.087796472012997,-0.085983783006668,-0.066076494753361) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.135985136032104,0.078603520989418,-0.042195081710815,-0.062248799949884,-0.207597121596336,-0.118235334753990,0.008550544269383,-0.016279594972730,-0.011626590043306,0.156581625342369,-0.092495322227478,0.140179529786110,0.025381071493030,-0.305913388729095,0.068799883127213,0.265776574611664) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.001003124052659,-0.285814285278320,0.040694802999496,-0.090969853103161,0.040003072470427,-0.215882435441017,-0.040162656456232,0.016629543155432,0.056953847408295,0.001916323672049,-0.058353714644909,0.117242403328419,0.043669726699591,-0.029641324654222,0.044341854751110,-0.233461335301399) * MODEL12_texOff(vec2(1,0));
res += mat4(0.013306688517332,0.029118603095412,-0.024177100509405,-0.031360890716314,0.057036411017179,0.028027163818479,0.080224469304085,0.003692998550832,-0.011969466693699,0.014923615381122,0.118821404874325,-0.010179162025452,0.035815015435219,0.124564900994301,0.091059647500515,0.022197257727385) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.063773818314075,0.109271176159382,-0.034493431448936,-0.151600211858749) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL3
//!DESC [AiUpscale_HQ_3x_Photo] mapping 7_3

vec4 hook()
{
vec4 res = vec4(-0.162934616208076,-0.249447375535965,-0.062341742217541,-0.107097618281841);
res += mat4(-0.000980838318355,0.050913359969854,-0.137888580560684,0.108692765235901,-0.022003691643476,0.010690023191273,-0.028597809374332,0.062061566859484,0.032281938940287,0.092310436069965,-0.021458849310875,0.103378735482693,0.167518615722656,0.037693124264479,-0.162214443087578,0.094976432621479) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.160942643880844,0.025076804682612,-0.108300596475601,0.061967659741640,-0.009802157990634,0.001678124885075,-0.012743789702654,0.039176501333714,0.089182414114475,0.197520062327385,-0.071995504200459,-0.014551050029695,0.112385258078575,-0.020767044275999,-0.151589125394821,0.094108201563358) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.127329438924789,-0.102039135992527,0.122279301285744,0.031855642795563,0.012565365992486,-0.008793449029326,0.020762870088220,0.021502744406462,-0.037908133119345,0.024463193491101,0.024988899007440,0.108523704111576,-0.042508840560913,-0.050476092845201,-0.065075680613518,0.177978336811066) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.001009235391393,0.084127835929394,-0.050611577928066,-0.118931360542774,-0.126401409506798,0.114950165152550,-0.372628837823868,-0.042745195329189,0.120610758662224,-0.040789633989334,-0.115225397050381,-0.028258686885238,0.024037156254053,-0.060696199536324,-0.101794898509979,-0.057508327066898) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.017231499776244,-0.111157976090908,-0.023584188893437,-0.125782713294029,-0.035534925758839,-0.019743444398046,-0.011543619446456,0.069003172218800,0.243956670165062,0.221793279051781,-0.094007886946201,0.044706888496876,0.145800203084946,0.003755152458325,-0.029898313805461,0.039461825042963) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.098393656313419,-0.126173958182335,-0.148310005664825,-0.069834984838963,-0.002016617218032,-0.095593616366386,-0.027732947841287,0.059617623686790,0.091661378741264,0.146615967154503,-0.048115674406290,-0.163008257746696,-0.083243831992149,0.003332664025947,-0.160758852958679,-0.186395362019539) * MODEL7_texOff(vec2(0,1));
res += mat4(0.101712837815285,0.406841665506363,0.057710871100426,0.019017040729523,0.160295799374580,0.162195459008217,0.212292715907097,-0.050341200083494,-0.015960585325956,0.073173433542252,0.043550051748753,0.072800219058990,-0.045555245131254,0.041207000613213,0.087102279067039,-0.075319707393646) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.011088762432337,0.445838123559952,-0.273776054382324,-0.116310603916645,-0.034145079553127,0.150915876030922,0.062866553664207,-0.134913057088852,0.048759393393993,-0.315216064453125,-0.138334944844246,-0.155615761876106,0.088374771177769,0.145950019359589,-0.191097617149353,-0.195954352617264) * MODEL7_texOff(vec2(1,0));
res += mat4(0.059597924351692,0.109592519700527,-0.025725647807121,-0.250854551792145,-0.136478736996651,-0.150635957717896,-0.004708894528449,0.017904464155436,0.013878738507628,-0.014314165338874,0.014699877239764,-0.164494246244431,0.001242492580786,0.066513955593109,-0.154641360044479,-0.091807506978512) * MODEL7_texOff(vec2(1,1));
res += mat4(0.203546017408371,0.071616277098656,-0.020126499235630,0.030241116881371,-0.067421533167362,0.015285252593458,-0.030791990458965,-0.095648579299450,0.094246730208397,-0.018142737448215,-0.018991628661752,-0.016785429790616,0.211659967899323,0.013417293317616,0.035697598010302,0.028998613357544) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.156290486454964,-0.074124537408352,0.005471717566252,0.199169412255287,0.318816006183624,0.362097740173340,-0.101493179798126,0.001494995667599,-0.075300656259060,0.198707997798920,-0.078743427991867,0.198241949081421,-0.017302084714174,0.085448414087296,-0.039497870951891,-0.006611974444240) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.043675206601620,-0.080298677086830,0.065482810139656,-0.152809873223305,0.057333361357450,0.083766452968121,-0.137876242399216,0.034660793840885,-0.149034753441811,-0.113775357604027,0.095758736133575,-0.003482693806291,-0.110117152333260,0.029641980305314,-0.030158784240484,0.085091829299927) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.033088997006416,0.102242164313793,-0.283957064151764,0.051798351109028,-0.288233786821365,0.122530043125153,0.112899474799633,0.144100412726402,0.154496163129807,0.020857058465481,0.053171675652266,-0.062202680855989,0.110322676599026,0.059217549860477,-0.061942156404257,0.163655623793602) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.108198843896389,0.110901534557343,-0.026964528486133,-0.225657537579536,-0.404317975044250,0.099772907793522,0.011123741045594,-0.196812391281128,0.212358027696609,0.049140833318233,0.205036744475365,-0.208946704864502,-0.079244911670685,-0.054700687527657,0.030412118881941,0.314750134944916) * MODEL8_texOff(vec2(0,0));
res += mat4(0.249273464083672,-0.007592992391437,-0.042782966047525,0.323921322822571,-0.255441397428513,0.030486829578876,0.068207405507565,0.153739526867867,0.003186825430021,0.008506383746862,-0.125356018543243,-0.156824946403503,-0.077184394001961,-0.171392381191254,0.040927272289991,0.031376697123051) * MODEL8_texOff(vec2(0,1));
res += mat4(0.154015034437180,0.047975223511457,0.169551163911819,0.062474887818098,-0.082243807613850,0.071435652673244,-0.104473903775215,0.082721531391144,0.038163173943758,0.015476981177926,0.080726064741611,-0.237414672970772,0.084481179714203,0.044252000749111,0.024332085624337,0.107580155134201) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.168843775987625,0.100074864923954,-0.008487882092595,0.129846081137657,-0.013067543506622,0.009112263098359,-0.170844331383705,0.210326910018921,-0.096958160400391,-0.133328080177307,0.014417917467654,-0.002100261393934,-0.253709346055984,-0.260771393775940,-0.053664371371269,-0.052045669406652) * MODEL8_texOff(vec2(1,0));
res += mat4(0.025645906105638,0.077174268662930,-0.019484633579850,-0.113937936723232,-0.037998896092176,0.208255618810654,-0.008414688520133,-0.032554008066654,0.145816892385483,0.180904731154442,-0.006542423274368,-0.033367101103067,0.117600344121456,-0.132406100630760,0.061317622661591,-0.054281719028950) * MODEL8_texOff(vec2(1,1));
res += mat4(0.085047133266926,0.003265067236498,0.047902949154377,-0.099775448441505,-0.123367577791214,0.024276882410049,0.020897287875414,0.075921602547169,-0.122331425547600,-0.093094877898693,-0.000918038655072,-0.005215424578637,-0.005041800439358,-0.090860523283482,0.024954741820693,0.109135478734970) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.077599383890629,-0.198379397392273,-0.058602474629879,-0.028075702488422,-0.272839725017548,0.055482614785433,0.099940091371536,0.072907857596874,-0.066228531301022,-0.143894612789154,0.308296114206314,-0.216456875205040,-0.300913125276566,-0.028910189867020,0.025335557758808,0.095271423459053) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.038486253470182,-0.118976823985577,-0.048810403794050,-0.011717843823135,-0.134873807430267,-0.106558077037334,-0.059851158410311,0.059173010289669,0.036555763334036,-0.127678394317627,-0.048430252820253,-0.013555363751948,0.056452397257090,0.153318375349045,0.047702383249998,-0.023100821301341) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.158633694052696,0.034330226480961,0.204774677753448,0.038405235856771,-0.328984290361404,0.089991070330143,0.246855407953262,-0.017515728250146,0.181514501571655,-0.026574991643429,-0.165464401245117,-0.029796469956636,-0.193966522812843,-0.088391371071339,-0.150011271238327,-0.073542259633541) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.004380871541798,-0.043709766119719,-0.518344521522522,-0.297198742628098,-0.067099802196026,-0.015522520057857,0.006453956011683,0.045910891145468,-0.156974300742149,0.088361032307148,-0.362540781497955,0.212235033512115,-0.348872393369675,-0.174144744873047,-0.166515186429024,0.149583280086517) * MODEL9_texOff(vec2(0,0));
res += mat4(0.082845538854599,-0.046443879604340,-0.022449659183621,-0.153753414750099,-0.240872085094452,-0.000448391656391,0.052966520190239,0.050825729966164,-0.129554376006126,-0.121206872165203,0.087167203426361,-0.027835527434945,-0.308286786079407,-0.177383184432983,0.060035970062017,0.178170517086983) * MODEL9_texOff(vec2(0,1));
res += mat4(0.047236099839211,-0.038190856575966,-0.087637931108475,0.094992056488991,0.046166110783815,-0.200901299715042,-0.043143585324287,0.124545663595200,-0.122338861227036,-0.217861562967300,-0.037126444280148,0.002730673411861,0.047478903084993,0.004694404080510,0.014071932062507,-0.027523277327418) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.068609252572060,-0.000132615270559,-0.001506788656116,0.020397221669555,-0.171951636672020,-0.023438431322575,0.023242365568876,0.060214024037123,-0.004348770715296,-0.239266872406006,-0.263107776641846,-0.280358403921127,-0.074379444122314,-0.014700403437018,0.139119833707809,-0.311709284782410) * MODEL9_texOff(vec2(1,0));
res += mat4(0.077162191271782,-0.028398606926203,-0.040026038885117,0.049938261508942,-0.007164471317083,0.178269073367119,0.091811805963516,-0.160805195569992,0.127961203455925,0.101787127554417,0.060907207429409,-0.211080744862556,-0.152696087956429,0.006953091360629,0.027770889922976,0.019429259002209) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.047796327620745,0.034178186208010,-0.104602605104446,-0.013205633498728,0.015050973743200,0.024002231657505,-0.045569296926260,0.073300249874592,0.005589180160314,-0.108648940920830,0.033192873001099,0.106603376567364,0.077982321381569,-0.048302441835403,0.005025837570429,-0.007095432374626) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.023562541231513,0.035600595176220,-0.156127542257309,0.097142815589905,-0.021735217422247,0.046854335814714,0.024976272135973,0.161049827933311,-0.283748924732208,0.031593091785908,0.036165285855532,-0.125087052583694,-0.068747557699680,0.075345396995544,0.015435647219419,0.234799236059189) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.002987391315401,-0.033908188343048,0.029821032658219,-0.014347293414176,-0.092133082449436,-0.026182338595390,-0.001052135019563,0.180445089936256,-0.314090192317963,0.033534198999405,-0.017704317346215,0.067664802074432,-0.054075747728348,0.000212519473280,0.077995412051678,0.051732670515776) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.041794251650572,0.036626506596804,-0.028473628684878,0.057676132768393,-0.040691211819649,0.207162261009216,-0.266736239194870,0.135721296072006,-0.149280622601509,0.081690780818462,0.221307456493378,-0.020086113363504,0.020133208483458,0.071804292500019,0.132937490940094,0.024967694655061) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.101122468709946,-0.079954244196415,0.189436674118042,-0.113826468586922,-0.016973055899143,-0.028060737997293,0.013453728519380,-0.080093912780285,0.487361580133438,-0.270142078399658,0.043761447072029,0.280042201280594,0.130319863557816,-0.055270504206419,-0.196915641427040,-0.156538963317871) * MODEL10_texOff(vec2(0,0));
res += mat4(0.017089100554585,-0.067722745239735,-0.107602246105671,0.023490544408560,-0.003067827550694,0.078793205320835,0.033092413097620,-0.025787495076656,0.014011936262250,0.165845647454262,-0.000958745367825,0.050545606762171,0.275717794895172,0.030998293310404,-0.016670156270266,-0.035626333206892) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.116988971829414,0.087987698614597,0.042072679847479,-0.107838772237301,0.032197330147028,0.047164872288704,-0.087951630353928,-0.160879746079445,-0.208551660180092,0.241479530930519,-0.092466652393341,-0.158238992094994,0.017785156145692,0.057225245982409,0.038263972848654,0.001275658840314) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.069537557661533,-0.065428428351879,0.001061930321157,-0.095483176410198,0.078827112913132,0.054251674562693,-0.094074718654156,0.018728062510490,-0.189583569765091,0.314861655235291,0.093594551086426,-0.312658041715622,0.124568834900856,0.320798307657242,0.151716902852058,-0.060829535126686) * MODEL10_texOff(vec2(1,0));
res += mat4(0.072619281709194,0.064150035381317,-0.025438278913498,0.029513828456402,0.058612361550331,0.021601274609566,0.056004460901022,-0.020137492567301,-0.063056029379368,-0.116913221776485,-0.073558740317822,-0.010103917680681,-0.076781280338764,0.027004742994905,0.021738490089774,0.171872630715370) * MODEL10_texOff(vec2(1,1));
res += mat4(0.123739771544933,0.146067395806313,0.101495169103146,-0.114361807703972,0.090139329433441,-0.008803541772068,-0.004995655268431,-0.032590225338936,-0.100745931267738,0.216635093092918,-0.044866442680359,0.025669857859612,-0.018639434129000,0.089275427162647,-0.052658040076494,0.025984030216932) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.135463789105415,0.053631868213415,0.057090066373348,0.041007157415152,0.142557069659233,0.110624872148037,-0.010337869636714,0.107800692319870,0.040750402957201,-0.094795539975166,0.119945190846920,0.000769247417338,-0.172835707664490,-0.187817856669426,-0.017426168546081,-0.056820977479219) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.188695684075356,-0.028891405090690,-0.009215582162142,0.259115636348724,0.015102843753994,-0.054857894778252,0.165759965777397,0.018429512158036,-0.041473563760519,0.040441233664751,0.006600726395845,-0.027054036036134,-0.145467713475227,0.000219481342356,0.004139286000282,-0.057828906923532) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.200430110096931,0.135359510779381,0.021973313763738,0.153379574418068,0.047863494604826,-0.175748139619827,0.056108444929123,0.046632081270218,-0.174643412232399,0.022821418941021,-0.070216417312622,0.057547513395548,-0.274481147527695,0.052198678255081,-0.002155393827707,-0.053390547633171) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.259595662355423,0.259933143854141,-0.152194187045097,-0.079623542726040,0.053399290889502,-0.281727582216263,0.235811844468117,-0.232073917984962,0.077893309295177,-0.007562439423054,-0.239248201251030,0.045504998415709,0.035909377038479,0.063248589634895,0.023539623245597,0.046937163919210) * MODEL11_texOff(vec2(0,0));
res += mat4(0.207807078957558,0.098880015313625,-0.072278544306755,-0.203224748373032,-0.042453330010176,0.005225499160588,0.123115450143814,-0.371906816959381,-0.080775722861290,-0.078142642974854,-0.070909813046455,-0.119055777788162,0.008812802843750,0.183563530445099,-0.108359098434448,0.158503845334053) * MODEL11_texOff(vec2(0,1));
res += mat4(0.000332234019879,0.018650285899639,-0.115257166326046,0.142815217375755,-0.023777453228831,-0.026378029957414,0.099199123680592,-0.068842761218548,0.180408060550690,0.117817163467407,-0.045584961771965,0.071454562246799,-0.237813413143158,0.040975332260132,-0.104674324393272,-0.079572111368179) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.272350847721100,-0.052389301359653,-0.009141937829554,0.245130032300949,0.004553650505841,-0.266170620918274,0.150454714894295,-0.041260991245508,-0.201552972197533,0.143385395407677,0.011123698204756,0.081569597125053,0.069976605474949,0.210887238383293,0.125925049185753,-0.057386212050915) * MODEL11_texOff(vec2(1,0));
res += mat4(0.041685622185469,0.269249320030212,-0.128865912556648,0.152681425213814,-0.004646463319659,-0.084805034101009,0.021165033802390,-0.233977109193802,-0.059572674334049,0.082718536257744,-0.066750250756741,-0.009666945785284,-0.125095278024673,0.046946179121733,0.022483685985208,0.057448480278254) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.048840988427401,-0.080585770308971,0.067935399711132,-0.026530684903264,-0.151373118162155,-0.121048495173454,-0.051950834691525,-0.019815374165773,0.254075467586517,-0.006133019924164,0.030816297978163,0.067642308771610,0.126869663596153,0.101999752223492,0.028362788259983,-0.013121108524501) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.022257398813963,-0.052882455289364,0.109343975782394,0.048520464450121,0.100792080163956,-0.080073408782482,-0.015720579773188,-0.022574592381716,-0.273934423923492,0.010815615765750,0.105116449296474,-0.006419283803552,0.159087345004082,-0.082806400954723,0.072778768837452,-0.024332836270332) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.013852524571121,0.164309024810791,-0.141085952520370,-0.055117201060057,0.139319941401482,-0.140798762440681,0.066440813243389,-0.161780983209610,0.040472581982613,-0.035688828676939,0.063224442303181,-0.027746515348554,0.035961348563433,0.005046903155744,-0.052513696253300,-0.022800210863352) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.128936514258385,0.011828136630356,-0.043723829090595,-0.034648019820452,0.224652886390686,-0.054679084569216,0.015526512637734,0.048779342323542,0.064208403229713,-0.091513365507126,0.030809899792075,-0.168612331151962,0.163690850138664,0.218097403645515,0.016494357958436,0.004607009701431) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.095029413700104,0.239287316799164,-0.002888711402193,0.114646427333355,-0.254782736301422,-0.032753694802523,0.024896588176489,0.081722997128963,0.087288260459900,-0.074017979204655,0.237370058894157,-0.066265277564526,-0.124532997608185,0.120407253503799,-0.048475977033377,0.011116276495159) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.145613715052605,-0.189338460564613,0.170133799314499,0.072680547833443,-0.106899060308933,0.048165924847126,-0.151261746883392,0.143379822373390,0.153522253036499,-0.085667856037617,0.078898437321186,-0.056322287768126,-0.054971661418676,0.010602724738419,0.019928069785237,0.034283991903067) * MODEL12_texOff(vec2(0,1));
res += mat4(0.142960757017136,-0.089822642505169,0.005478562321514,0.101742818951607,0.060901630669832,-0.018096981570125,-0.092578612267971,-0.073671370744705,-0.278146564960480,-0.099982157349586,0.005128825083375,0.231914132833481,-0.079527199268341,0.171992659568787,0.105425320565701,0.211877584457397) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.078744724392891,0.067138560116291,-0.148931190371513,-0.237086921930313,0.073465093970299,-0.200146794319153,-0.037220094352961,-0.029062228277326,0.117420569062233,-0.300627887248993,-0.091220498085022,0.311423420906067,0.059051427990198,-0.140103265643120,-0.133410394191742,0.113478578627110) * MODEL12_texOff(vec2(1,0));
res += mat4(0.023734470829368,-0.030906192958355,0.007601676974446,0.094991363584995,0.044175818562508,-0.376800268888474,0.019000060856342,-0.086462847888470,0.106127016246319,0.090675584971905,0.012796760536730,0.133523657917976,0.052054032683372,-0.125063031911850,-0.055224880576134,-0.028593279421329) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.051614180207253,0.096017546951771,0.124157115817070,-0.041165940463543) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL4
//!DESC [AiUpscale_HQ_3x_Photo] mapping 7_4

vec4 hook()
{
vec4 res = vec4(-0.002304318826646,0.018847594037652,-0.063839741051197,-0.136096581816673);
res += mat4(-0.153095781803131,0.118497930467129,-0.042149484157562,0.185702711343765,0.039525885134935,-0.022088637575507,-0.042152546346188,-0.120305888354778,-0.086837030947208,0.091963268816471,-0.067869618535042,-0.012504463084042,0.111968681216240,-0.033225160092115,-0.115419313311577,0.130584120750427) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.226845815777779,-0.189472049474716,0.357447922229767,-0.112329088151455,0.026906648650765,0.052843898534775,-0.024260403588414,-0.021710727363825,-0.298333644866943,-0.162662833929062,0.241193860769272,0.060288742184639,-0.101075202226639,-0.211257696151733,0.090234637260437,-0.133236423134804) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.072390578687191,0.048180166631937,-0.166295528411865,0.151974558830261,-0.005214930512011,0.047428492456675,0.002816435182467,-0.002183000324294,0.061225969344378,0.133088111877441,-0.128790989518166,0.102384284138680,-0.136236995458603,-0.039763614535332,-0.328891277313232,0.106863133609295) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.050484988838434,0.053711596876383,0.035081524401903,0.107196293771267,-0.385978311300278,0.101967334747314,-0.077255755662918,-0.212377727031708,-0.028843846172094,0.142943188548088,0.024302216246724,0.085895031690598,-0.170510411262512,0.179413750767708,-0.178141489624977,0.090521506965160) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.055843763053417,0.038861248642206,0.187366262078285,0.107131622731686,0.012464149855077,-0.158026605844498,-0.016524851322174,-0.396107465028763,-0.051703773438931,-0.009491412900388,0.318962007761002,-0.242316812276840,-0.006064441986382,-0.110958337783813,0.094454087316990,-0.140779227018356) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.094420246779919,0.116288937628269,0.013684373348951,0.039454318583012,0.018927207216620,0.032668128609657,-0.047028154134750,0.022961515933275,-0.173363551497459,0.026171352714300,-0.051740370690823,0.178686797618866,-0.036752603948116,-0.179710999131203,-0.077998794615269,0.045773182064295) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.186581775546074,0.105548799037933,0.168218925595284,0.098452687263489,0.048707079142332,0.085883781313896,-0.024631528183818,-0.000406959297834,0.077966317534447,0.056614745408297,0.152451068162918,-0.018693327903748,-0.014463650062680,0.142705082893372,-0.085677273571491,0.134656101465225) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.268525153398514,-0.041918992996216,-0.376026064157486,-0.005893270485103,-0.019517512992024,-0.145012170076370,0.156604349613190,-0.018746610730886,0.061079520732164,-0.080361455678940,-0.183098226785660,0.146679848432541,0.034753575921059,0.116884641349316,0.049180403351784,-0.055479761213064) * MODEL7_texOff(vec2(1,0));
res += mat4(0.036034058779478,0.055586472153664,0.141723096370697,-0.088947474956512,-0.012488844804466,0.049092996865511,0.016407312825322,-0.003548135980964,0.058544579893351,0.093927405774593,0.256259739398956,-0.135420843958855,0.048502363264561,-0.014712185598910,-0.062288831919432,0.058577831834555) * MODEL7_texOff(vec2(1,1));
res += mat4(0.041217714548111,0.117457844316959,-0.018473263829947,0.116826876997948,-0.067047588527203,0.041280731558800,-0.061266571283340,-0.007295417599380,-0.090911924839020,0.036806888878345,0.023400083184242,0.028825078159571,0.162617996335030,0.007752427831292,0.003317255526781,0.008838973008096) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.124883510172367,0.015351913869381,-0.183698952198029,-0.121396116912365,0.159459590911865,-0.078798726201057,-0.115876346826553,-0.011412585154176,0.252824127674103,-0.076411865651608,-0.142347961664200,-0.051212873309851,0.181978061795235,-0.086722940206528,-0.090693593025208,-0.029350692406297) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.273750513792038,-0.045197766274214,0.034777633845806,0.066599309444427,0.052419584244490,-0.015544212423265,0.083827964961529,-0.072232246398926,-0.073065273463726,0.011235347017646,0.030132360756397,-0.077122017741203,0.170011878013611,0.079863592982292,0.250195086002350,-0.046621061861515) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.102367147803307,0.184819296002388,-0.082328006625175,0.226768165826797,0.150585025548935,-0.012248922139406,0.156015068292618,0.111549653112888,-0.006431914865971,0.031515490263700,0.029996283352375,-0.027577579021454,-0.007384587079287,-0.013565339148045,0.009591817855835,0.050370823591948) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.108942218124866,-0.406681329011917,-0.227425336837769,-0.300046980381012,0.021679278463125,0.049943290650845,-0.192791447043419,0.144448429346085,-0.161976575851440,-0.152706757187843,-0.036967009305954,-0.080732703208923,-0.022167351096869,-0.129714652895927,0.020170057192445,0.208363607525826) * MODEL8_texOff(vec2(0,0));
res += mat4(0.539802134037018,0.110504776239395,-0.081383675336838,-0.136924967169762,0.038056161254644,0.030226660892367,0.244847789406776,-0.171871572732925,0.051403164863586,0.051989324390888,-0.200611144304276,0.132927060127258,-0.239119201898575,0.398768156766891,0.034996867179871,-0.068598441779613) * MODEL8_texOff(vec2(0,1));
res += mat4(0.013613794930279,0.235810518264771,0.121537312865257,0.243112444877625,0.034596063196659,-0.104171015322208,0.028019456192851,-0.058616604655981,-0.018000835552812,-0.038214623928070,0.025002172216773,0.016837131232023,0.079669050872326,-0.009665925987065,0.094467267394066,0.048237908631563) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.112421713769436,-0.193604782223701,-0.024691678583622,-0.096236363053322,0.079837657511234,0.043109938502312,-0.205441758036613,0.031995631754398,0.172918364405632,-0.038347158581018,-0.164469406008720,-0.389697134494781,0.036633763462305,-0.120448902249336,-0.150360584259033,0.016603421419859) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.140507027506828,-0.110061988234520,-0.053178198635578,0.079099945724010,-0.081388942897320,0.039986036717892,-0.031169021502137,-0.033884290605783,0.132842004299164,0.061784744262695,-0.005070912186056,0.191418692469597,-0.016755612567067,0.129277214407921,0.139603003859520,-0.135719761252403) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.109270922839642,0.021033409982920,0.001681282883510,0.007911361753941,0.078345753252506,-0.095028117299080,0.067971788346767,0.077837750315666,-0.047652296721935,0.058429017663002,-0.073560491204262,-0.049600157886744,0.139206886291504,-0.036967929452658,-0.073358371853828,0.011611539870501) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.002256867242977,-0.064579539000988,-0.136527135968208,-0.073014765977859,-0.121863059699535,0.002396688563749,0.185676828026772,0.042162012308836,-0.296839445829391,0.030143942683935,-0.219188764691353,0.039595309644938,-0.026091495528817,0.025279583409429,0.032854434102774,0.144879072904587) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.027660926803946,0.014040477573872,-0.120234049856663,0.044736456125975,0.004346839152277,-0.022111916914582,0.012076260522008,0.026899121701717,0.035013224929571,-0.220311328768730,0.161211773753166,-0.035832066088915,0.040724169462919,-0.034224580973387,-0.086605735123158,0.132620155811310) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.050006940960884,0.009543297812343,0.059316009283066,0.132695421576500,-0.115249410271645,-0.039959561079741,0.101494722068310,0.061319470405579,-0.091674901545048,0.036986693739891,-0.130962848663330,0.036626007407904,-0.117740854620934,0.078295528888702,-0.083891764283180,-0.001968309283257) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.461566209793091,-0.089896716177464,-0.317831099033356,-0.412705153226852,-0.097409933805466,0.205950766801834,0.071491457521915,0.312353104352951,-0.090501524507999,-0.162469327449799,-0.409358084201813,-0.118678972125053,-0.040707308799028,-0.116039127111435,-0.106105819344521,-0.388830393552780) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.022107316181064,-0.286802172660828,-0.047408740967512,0.153311386704445,0.049408879131079,-0.039406351745129,0.150361284613609,-0.003251102054492,0.122488602995872,-0.084037698805332,0.430616706609726,-0.246350869536400,-0.028187820687890,0.049456380307674,-0.024092840030789,0.130990639328957) * MODEL9_texOff(vec2(0,1));
res += mat4(0.017042042687535,0.005411682650447,0.055760808289051,-0.016335731372237,0.101344458758831,-0.109234400093555,0.084290795028210,0.036146331578493,0.177431091666222,0.025268075987697,0.045138437300920,0.017390066757798,-0.024458114057779,0.033900130540133,0.060760315507650,0.073548458516598) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.007766879163682,0.032857377082109,0.037450306117535,0.127867922186852,-0.070333570241928,0.037112355232239,0.074161872267723,0.219157278537750,0.307327300310135,-0.294264048337936,0.084414668381214,-0.026567153632641,0.001593027613126,-0.035800825804472,-0.043215282261372,-0.116235092282295) * MODEL9_texOff(vec2(1,0));
res += mat4(0.091691672801971,0.029265984892845,-0.063639752566814,-0.071880094707012,-0.054601501673460,0.162668004631996,0.191524818539619,0.009511427953839,-0.039195589721203,0.090112157166004,0.006914016325027,0.057290803641081,-0.018272850662470,-0.079761400818825,0.111581772565842,0.043993305414915) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.012117112986743,0.031261194497347,0.123347423970699,-0.001053904881701,0.084255412220955,0.094162404537201,0.017624128609896,0.148346915841103,0.019256567582488,-0.017060747370124,0.005579289980233,0.103776685893536,-0.013548453338444,-0.062629774212837,0.064653716981411,-0.003846535691991) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.044004365801811,0.095714166760445,0.099783360958099,0.124599128961563,0.088418349623680,0.046877153217793,-0.127416983246803,-0.053441248834133,-0.139479577541351,0.068463347852230,0.070671483874321,0.013591001741588,0.416694015264511,-0.004918043036014,-0.277966409921646,0.078749649226665) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.098500087857246,-0.063711658120155,0.044564370065928,-0.036553986370564,0.154706016182899,-0.079071402549744,-0.054659482091665,0.001163271022961,0.074351012706757,-0.048643585294485,-0.000948778761085,0.072706647217274,-0.083705604076385,0.063557244837284,0.095539197325706,-0.124314054846764) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.188041895627975,-0.024672899395227,-0.131892502307892,0.067484006285667,-0.243662565946579,0.110378473997116,-0.323238819837570,0.009537587873638,0.055523704737425,-0.051334757357836,0.209665209054947,0.027745740488172,0.020354263484478,-0.043142423033714,0.063933797180653,0.120797961950302) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.018852999433875,0.155903309583664,0.156684130430222,0.178110331296921,-0.034619171172380,-0.201445087790489,-0.074368633329868,-0.058756507933140,0.105110764503479,0.109695151448250,-0.008674144744873,-0.316647768020630,-0.395818471908569,0.104594103991985,-0.164428189396858,-0.410252898931503) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.046278249472380,0.082606896758080,-0.274513751268387,0.019188601523638,-0.020002815872431,-0.076096579432487,0.072886668145657,0.035822588950396,0.044832278043032,-0.003514439100400,0.056470815092325,0.113392546772957,-0.046484217047691,-0.106063887476921,-0.175994887948036,0.045106396079063) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.073173083364964,-0.115286275744438,0.046977356076241,-0.087922677397728,0.059491772204638,-0.040966659784317,-0.160761058330536,-0.058070447295904,-0.109247170388699,-0.129915162920952,-0.057196252048016,0.000885702262167,-0.112743034958839,0.001138258608989,-0.145167022943497,0.027726143598557) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.010788310319185,-0.053109128028154,0.051570996642113,0.160740822553635,-0.049482285976410,-0.054747246205807,0.026326747611165,-0.005605081096292,-0.108332395553589,-0.036388166248798,-0.052308067679405,-0.158298581838608,-0.179404631257057,-0.014189447276294,0.160605296492577,-0.103383615612984) * MODEL10_texOff(vec2(1,0));
res += mat4(0.121337041258812,-0.047198045998812,-0.062788039445877,-0.032945975661278,-0.025461707264185,-0.012791430577636,0.080701075494289,0.006533224601299,0.045202068984509,-0.001692949794233,0.047082327306271,-0.048190917819738,-0.152878567576408,-0.132056981325150,-0.142802044749260,0.047702040523291) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.093542516231537,0.017621790990233,-0.044085673987865,-0.144318953156471,-0.145478323101997,0.027045182883739,-0.202316373586655,-0.077815726399422,-0.075762823224068,0.105542413890362,0.191032573580742,0.111555181443691,0.035228226333857,-0.004634326789528,0.079989373683929,0.010481638833880) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.052132599055767,-0.084718950092793,-0.292957782745361,-0.092769436538219,0.077925682067871,-0.013336163014174,0.215540573000908,-0.125869810581207,-0.114021643996239,-0.025535624474287,-0.002657628851011,0.026918182149529,-0.010861773043871,0.043516915291548,-0.025174846872687,-0.101455442607403) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.036929149180651,-0.172407001256943,0.002131047891453,-0.133501321077347,-0.077681228518486,0.035463139414787,-0.124588042497635,-0.164797946810722,-0.086654372513294,-0.018095910549164,0.159939974546432,0.087574191391468,-0.015560792759061,0.032098252326250,-0.089992947876453,-0.090519234538078) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.153031498193741,-0.029511118307710,-0.017266597598791,-0.041960053145885,-0.047635581344366,0.021554159000516,0.191955164074898,0.004952121991664,0.069124169647694,0.096319615840912,0.111526980996132,0.160409048199654,0.056118514388800,0.042032405734062,-0.046083662658930,-0.080807574093342) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.160331472754478,-0.099187470972538,-0.129792258143425,-0.075205862522125,-0.096203655004501,-0.091454938054085,-0.056747008115053,0.025061802938581,-0.137293085455894,0.039795771241188,-0.200539529323578,-0.270291537046432,0.131751075387001,0.044532965868711,0.210288122296333,0.147690489888191) * MODEL11_texOff(vec2(0,0));
res += mat4(0.028074599802494,-0.384057015180588,-0.173923671245575,-0.141546174883842,-0.212740361690521,-0.036075770854950,-0.139063656330109,0.137863293290138,-0.041573919355869,-0.130906775593758,0.093091070652008,0.176443710923195,0.010630961507559,0.043044328689575,-0.187264397740364,0.171433314681053) * MODEL11_texOff(vec2(0,1));
res += mat4(0.059397030621767,0.002218922832981,0.124779216945171,0.012069705873728,-0.079618185758591,0.010795516893268,0.024329764768481,-0.036651320755482,0.162921428680420,0.038877237588167,0.224066480994225,0.025102399289608,-0.020496854558587,0.090258352458477,-0.334003508090973,-0.164571285247803) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.137802749872208,0.035958025604486,-0.158571437001228,0.021625887602568,0.107018381357193,-0.090271346271038,-0.072797246277332,-0.017449488863349,-0.001239715493284,-0.039351187646389,-0.383694946765900,0.202645018696785,-0.219392642378807,-0.121607623994350,0.272109121084213,0.211015492677689) * MODEL11_texOff(vec2(1,0));
res += mat4(0.057237502187490,-0.387136250734329,0.018407780677080,0.090734742581844,0.030640268698335,0.024396823719144,0.085077546536922,-0.236830249428749,0.009884743019938,0.047426301985979,0.439575314521790,-0.176246926188469,0.014522071927786,0.002795660868287,-0.106449067592621,0.001710480777547) * MODEL11_texOff(vec2(1,1));
res += mat4(0.072193481028080,-0.082889296114445,-0.103083640336990,-0.008367343805730,-0.073786318302155,0.065332703292370,0.050973556935787,0.076003395020962,0.110471703112125,-0.057933300733566,-0.082607634365559,0.060152795165777,0.106619171798229,0.001497618621215,0.101685129106045,0.030176751315594) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.144551336765289,-0.104689344763756,-0.032240781933069,0.072640128433704,-0.072433710098267,-0.007513813208789,0.133674949407578,0.117598846554756,-0.033472828567028,0.051182966679335,-0.254786670207977,-0.188597187399864,-0.054308693856001,0.105377227067947,0.016267957165837,0.020199604332447) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.026659434661269,0.081017255783081,-0.048177771270275,0.085792265832424,-0.206844925880432,-0.047393374145031,0.036999378353357,0.227207720279694,0.072038270533085,-0.054587852209806,-0.005672429688275,-0.101594671607018,0.002614188008010,0.047679502516985,0.129236966371536,0.136112689971924) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.159079477190971,0.015923891216516,-0.158534109592438,0.150618776679039,-0.009864842519164,0.075037658214569,0.011043769307435,0.110393784940243,-0.064501911401749,0.052620753645897,-0.083232484757900,-0.050946258008480,0.061785168945789,-0.067675605416298,0.178424149751663,0.006002267822623) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.190040260553360,-0.085209377110004,-0.282141476869583,-0.026533443480730,0.176382154226303,-0.065346188843250,0.092835918068886,0.065572671592236,0.181021153926849,0.185024291276932,0.181093975901604,-0.299572646617889,0.266095191240311,-0.135852441191673,-0.166611596941948,-0.094593398272991) * MODEL12_texOff(vec2(0,0));
res += mat4(0.086301781237125,0.005846428219229,0.025798412039876,-0.193303972482681,0.121026709675789,0.136422008275986,-0.010059518739581,0.152688622474670,-0.003795017953962,-0.271054267883301,0.034902743995190,-0.007286982610822,0.080029599368572,0.149530798196793,-0.115199960768223,-0.066849187016487) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.070463120937347,0.029501233249903,0.026941843330860,0.091832920908928,-0.043571982532740,0.043709859251976,0.008759313262999,-0.017529746517539,0.009904574602842,0.069332540035248,0.007110145874321,0.176291495561600,0.081531479954720,-0.256971508264542,0.271076679229736,0.001236609648913) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.086260572075844,-0.291731685400009,-0.048917446285486,-0.162975877523422,0.075410000979900,-0.049008011817932,-0.206548139452934,-0.084843598306179,0.127685934305191,-0.082756280899048,0.174546152353287,-0.084391146898270,-0.160233393311501,-0.103938691318035,-0.336520284414291,0.110747821629047) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.084301054477692,0.068997770547867,-0.033055294305086,-0.055006176233292,-0.030787484720349,-0.073095619678497,-0.044055860489607,0.042688574641943,-0.069857612252235,0.020648103207350,-0.116944938898087,0.077424667775631,-0.190115466713905,-0.032730266451836,-0.213361203670502,0.029112122952938) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.108470432460308,-0.081772521138191,0.038283724337816,0.038020633161068) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL5
//!DESC [AiUpscale_HQ_3x_Photo] mapping 7_5

vec4 hook()
{
vec4 res = vec4(0.022225094959140,-0.061723642051220,-0.096775464713573,-0.182464778423309);
res += mat4(0.192949414253235,-0.024938810616732,0.217582821846008,0.061741840094328,-0.033838085830212,0.093219056725502,0.043928999453783,0.018859820440412,0.157964825630188,0.054475165903568,0.171842321753502,-0.022121064364910,0.442296147346497,-0.124546289443970,0.094704695045948,0.032938357442617) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.099814467132092,-0.047372553497553,0.147378310561180,0.075021676719189,-0.098561465740204,-0.043906413018703,-0.004187566228211,0.036216266453266,0.025939201936126,0.166368186473846,0.013241622596979,0.149972736835480,0.235907644033432,-0.131585657596588,-0.067928113043308,-0.008819605223835) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.033490911126137,-0.038569360971451,0.128398016095161,-0.213630005717278,0.013987863436341,0.090975001454353,-0.002194599481300,-0.019632874056697,-0.210273429751396,0.042169596999884,0.137349560856819,0.060007371008396,-0.000022433629056,-0.368622392416000,0.216384887695313,0.229698613286018) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.145807668566704,-0.156183928251266,-0.012626094743609,0.074859499931335,0.014593509025872,0.112639069557190,0.009839002043009,0.113792523741722,0.067021504044533,0.179086476564407,0.043809808790684,0.141023695468903,0.018158243969083,-0.095524370670319,-0.069565795361996,0.160814449191093) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.118412747979164,-0.206325337290764,0.013226678594947,-0.112090311944485,0.145737141370773,0.192608937621117,-0.009888124652207,-0.173961862921715,0.342426687479019,0.116248197853565,-0.205025598406792,-0.277082115411758,0.264100223779678,-0.140392616391182,0.105659678578377,-0.059373527765274) * MODEL7_texOff(vec2(0,0));
res += mat4(0.024516740813851,-0.078074656426907,0.164774999022484,-0.091484509408474,-0.005640450865030,0.073681421577930,-0.055246323347092,-0.051199857145548,0.075165040791035,-0.051383145153522,0.122782722115517,0.202579364180565,0.355332344770432,-0.042788792401552,-0.003038419643417,-0.155218645930290) * MODEL7_texOff(vec2(0,1));
res += mat4(0.122185610234737,0.284368216991425,0.027459818869829,0.019440982490778,0.054610859602690,-0.125660747289658,-0.020645996555686,0.052565585821867,-0.125314906239510,-0.054598048329353,-0.106584705412388,0.093627005815506,0.218019306659698,0.108364485204220,-0.103163287043571,0.088967271149158) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.040152993053198,0.319803029298782,0.128205120563507,0.064737521111965,0.076724030077457,-0.150528267025948,0.036786332726479,-0.063504077494144,-0.087214760482311,0.104856714606285,0.014267389662564,0.066513068974018,0.176015183329582,0.150035977363586,-0.021114127710462,-0.020066151395440) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.046320956200361,0.293197572231293,0.036163121461868,-0.193779721856117,-0.034371420741081,0.003442529821768,-0.059599749743938,-0.092466011643410,-0.098098047077656,0.112849861383438,0.221509948372841,0.059595089405775,0.147279709577560,0.137824952602386,-0.075742132961750,-0.093751423060894) * MODEL7_texOff(vec2(1,1));
res += mat4(0.101762130856514,-0.002195690525696,0.168262779712677,0.070446193218231,-0.024634128436446,-0.012165140360594,-0.037718683481216,0.078338958323002,-0.162945091724396,-0.045941330492496,-0.118444919586182,-0.014972534030676,0.021636713296175,0.040392413735390,-0.075525954365730,0.068104535341263) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.107616171240807,0.059239685535431,-0.106396287679672,0.162625491619110,-0.056855484843254,-0.206895619630814,-0.045067019760609,-0.105039313435555,0.036089360713959,0.029622264206409,-0.158050328493118,-0.105089880526066,-0.195695787668228,-0.022370485588908,0.086085446178913,0.105666093528271) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.101197086274624,0.178578928112984,0.081647470593452,0.181268766522408,0.063044138252735,0.040097873657942,-0.100872129201889,0.006459627766162,-0.082417748868465,-0.059171874076128,-0.041315365582705,-0.097671523690224,-0.122040182352066,-0.036210462450981,-0.136112809181213,-0.090590842068195) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.244226515293121,0.033827632665634,0.214978948235512,0.170354530215263,-0.212499797344208,0.112996190786362,-0.022748582065105,-0.112093083560467,0.243613034486771,-0.034194611012936,0.058336514979601,-0.057886738330126,0.014777543954551,-0.055438149720430,-0.039466600865126,0.025652159005404) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.065332151949406,-0.065228223800659,0.033353034406900,-0.080077029764652,0.028327099978924,-0.136265769600868,-0.167980894446373,0.071004718542099,-0.156879886984825,0.059605993330479,-0.301356196403503,-0.026354931294918,0.245652556419373,-0.139869809150696,0.060683391988277,-0.090070486068726) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.031917549669743,-0.085301853716373,-0.312187761068344,-0.016023769974709,-0.134425938129425,-0.094884999096394,-0.008670130744576,-0.097068168222904,0.052551187574863,0.075820617377758,-0.069016560912132,-0.030904827639461,0.201054424047470,-0.075730577111244,-0.240833044052124,0.094952873885632) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.148847237229347,0.110667973756790,-0.206998899579048,0.078283146023750,-0.036576472222805,-0.024655448272824,0.036077089607716,-0.016185972839594,-0.089880973100662,-0.064365945756435,-0.078924946486950,0.037866115570068,0.037586856633425,-0.033826958388090,0.086962327361107,0.003786420915276) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.172026276588440,0.102922156453133,0.081311501562595,-0.108882479369640,-0.000734203611501,0.159441128373146,-0.093714520335197,0.047455888241529,-0.281044930219650,0.059967122972012,-0.420997381210327,0.007101200520992,0.104680933058262,0.044027358293533,0.070542193949223,0.057644713670015) * MODEL8_texOff(vec2(1,0));
res += mat4(0.022322718054056,-0.036733813583851,-0.090810537338257,-0.210557907819748,-0.053597055375576,0.005780869629234,0.101524136960506,0.142876118421555,0.011720200069249,0.008337277919054,-0.139136686921120,0.132681190967560,0.001040837960318,0.003958991263062,0.081550188362598,-0.023599959909916) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.005382041446865,0.056133393198252,-0.050979439169168,0.020627023652196,-0.230469807982445,-0.016094455495477,-0.009767316281796,-0.025197988376021,0.187979042530060,-0.011746870353818,0.020238785073161,0.062039680778980,0.013205007649958,-0.089402116835117,0.076380603015423,0.019135253503919) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.011540924198925,-0.504464745521545,-0.112301826477051,0.066043242812157,-0.131402209401131,-0.024134062230587,0.318079024553299,0.000650398025755,0.069711133837700,-0.229378327727318,0.119728125631809,0.244068548083305,0.011586109176278,-0.156334772706032,0.170237436890602,0.059625152498484) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.017664918676019,-0.088034406304359,-0.102900639176369,0.008435316383839,0.005767504684627,-0.101103812456131,-0.130000248551369,0.005873825401068,0.086279511451721,-0.001820751931518,0.058297898620367,-0.075286813080311,0.018265660852194,0.085899516940117,0.090207129716873,0.033832602202892) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.073123738169670,-0.016930347308517,-0.054957430809736,-0.047869175672531,-0.046525198966265,-0.054101236164570,-0.188308179378510,-0.207152903079987,-0.299628674983978,0.002718530129641,-0.036668471992016,-0.038940906524658,-0.099921658635139,-0.035025052726269,0.010404730215669,0.074748799204826) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.173747181892395,0.413759648799896,0.063957929611206,0.084301263093948,-0.107298046350479,0.059093542397022,0.112214691936970,0.187677681446075,-0.096905931830406,-0.272224336862564,-0.117145799100399,-0.041914690285921,-0.055578738451004,0.130482718348503,0.087829612195492,0.015116763301194) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.120889119803905,0.044710785150528,0.080586932599545,-0.211302891373634,-0.029344450682402,0.011670431122184,0.247629120945930,-0.034850038588047,-0.210380852222443,-0.167970582842827,0.108904518187046,-0.262790501117706,-0.029557019472122,-0.147692367434502,-0.030750446021557,0.009437002241611) * MODEL9_texOff(vec2(0,1));
res += mat4(0.022673340514302,0.024773916229606,0.074233688414097,-0.028283119201660,-0.059906773269176,0.001996827078983,0.210759565234184,-0.061936452984810,-0.127179414033890,-0.046761974692345,0.021223597228527,0.008987202309072,0.041143566370010,-0.004668376874179,-0.030576342716813,-0.010072512552142) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.007048903964460,0.007797230966389,-0.105476610362530,0.001981728244573,0.061001542955637,-0.058523070067167,-0.178288072347641,-0.069176398217678,0.228878065943718,0.186263576149940,0.135810241103172,-0.006298612337559,0.061568688601255,0.016266608610749,-0.119235925376415,-0.088408164680004) * MODEL9_texOff(vec2(1,0));
res += mat4(0.072629787027836,0.073067024350166,-0.052229784429073,-0.074775606393814,-0.170072257518768,0.021718828007579,0.119942516088486,-0.032999422401190,-0.170711606740952,-0.003131137927994,0.037796601653099,0.136381044983864,0.073877319693565,0.008579122833908,0.029463959857821,-0.002618517493829) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.155893802642822,0.047649729996920,0.030396344140172,0.040383696556091,-0.043795913457870,-0.193458899855614,0.090787075459957,0.051023110747337,-0.194278270006180,-0.002397730946541,0.027159580960870,0.084385477006435,-0.067899473011494,-0.155045405030251,-0.038770671933889,0.078821100294590) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.065754532814026,0.128005728125572,0.017049476504326,0.066621266305447,0.132082566618919,-0.224803060293198,-0.103190921247005,0.173362836241722,0.208198174834251,-0.049369107931852,0.019758705049753,0.001978554995731,0.035332135856152,-0.146402522921562,0.001199898659252,-0.024478282779455) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.001369798672386,0.047121144831181,0.119064040482044,0.032637331634760,-0.066547080874443,-0.016970660537481,0.000772289815359,0.103500150144100,-0.016713457182050,-0.106043897569180,0.145323500037193,-0.061509832739830,-0.092768691480160,-0.186716958880424,-0.063090324401855,0.182592272758484) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.095219179987907,-0.247193366289139,-0.170982733368874,0.001418307889253,-0.293673902750015,0.073464892804623,0.188916578888893,0.070384636521339,-0.109089732170105,-0.083427391946316,-0.043485689908266,-0.027820250019431,0.057480968534946,-0.091342724859715,-0.014376643113792,0.050801768898964) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.116597257554531,-0.188731446862221,0.003207769244909,-0.127116590738297,-0.018100228160620,-0.070786938071251,0.286648690700531,-0.196544513106346,-0.530170142650604,0.101573035120964,-0.154598936438560,0.291220486164093,0.065788075327873,-0.106137007474899,0.259132564067841,0.162439242005348) * MODEL10_texOff(vec2(0,0));
res += mat4(0.095616236329079,0.036609284579754,0.000942195125390,0.193423360586166,-0.030737711116672,-0.005704374052584,0.144344136118889,-0.041930545121431,-0.032928768545389,-0.070707641541958,0.100298039615154,-0.071616366505623,0.070773728191853,0.014024365693331,-0.080203726887703,-0.230515480041504) * MODEL10_texOff(vec2(0,1));
res += mat4(0.048552375286818,0.091456107795238,0.114350900053978,-0.075931757688522,-0.032948158681393,-0.029727905988693,0.035963967442513,0.046814061701298,0.077092990279198,0.082668691873550,0.065808862447739,-0.043772615492344,-0.033476959913969,-0.037595488131046,-0.036030299961567,-0.001685773953795) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.110437028110027,0.133000135421753,0.008698403835297,-0.367894202470779,0.037582881748676,0.089414618909359,0.100298486649990,0.032913200557232,-0.176341250538826,-0.109946958720684,-0.252261698246002,-0.035800602287054,-0.135540783405304,-0.075262948870659,0.005813732277602,0.068035520613194) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.044213756918907,-0.031071560457349,0.011290973983705,-0.028537446632981,0.034985505044460,-0.024045202881098,0.157447353005409,-0.015589301474392,-0.156563952565193,0.032110430300236,-0.028861736878753,-0.007925668731332,0.063099689781666,-0.070662744343281,-0.397502809762955,0.005548533983529) * MODEL10_texOff(vec2(1,1));
res += mat4(0.074925959110260,0.154522329568863,-0.064338378608227,0.050195317715406,-0.220521777868271,0.149799644947052,0.147816032171249,0.069245658814907,0.268782228231430,-0.096481263637543,0.159062251448631,0.052448496222496,0.091632917523384,-0.130356162786484,0.104141116142273,-0.024985771626234) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.017661038786173,0.228990480303764,0.026129269972444,0.053479716181755,-0.194333598017693,-0.018935540691018,0.174986422061920,-0.212997376918793,0.049359194934368,0.017269521951675,0.286397486925125,0.060971211642027,0.015768742188811,0.043350815773010,-0.044684994965792,-0.000254176411545) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.351801007986069,-0.145068794488907,0.072261758148670,-0.040848515927792,-0.238397791981697,0.002535270992666,0.134187266230583,0.076064780354500,0.024654675275087,-0.139424562454224,0.153030991554260,-0.023604042828083,-0.020216861739755,0.176919713616371,-0.050209924578667,0.033327683806419) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.183005556464195,0.057961381971836,0.010922729037702,-0.063853353261948,-0.230915904045105,0.042701628059149,0.023804746568203,0.110877998173237,0.032996322959661,0.072783485054970,0.075380392372608,0.109896458685398,0.089426614344120,0.045073330402374,0.037266932427883,0.003725026734173) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.163296505808830,0.059872139245272,-0.011536857113242,-0.051144432276487,0.047579828649759,-0.074580527842045,-0.039315003901720,-0.145882755517960,-0.050958249717951,0.153190314769745,-0.240839228034019,0.105025790631771,0.127979263663292,0.077441938221455,0.155546829104424,-0.015534185804427) * MODEL11_texOff(vec2(0,0));
res += mat4(0.053049355745316,0.090139038860798,0.084658272564411,-0.208799973130226,-0.103310890495777,-0.070417642593384,0.205137729644775,0.143751665949821,-0.109005175530910,-0.086178787052631,0.059308230876923,0.042202871292830,-0.015810523182154,0.018277434632182,-0.267813593149185,0.432135134935379) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.061370629817247,-0.097775503993034,0.144313469529152,-0.009326480329037,-0.099730625748634,-0.066737398505211,0.037545930594206,-0.003246592590585,0.032894093543291,0.055353540927172,-0.000580180960242,-0.009349934756756,-0.027302118018270,0.060550615191460,-0.033184707164764,-0.000520800705999) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.016339933499694,0.014083223417401,0.009815220721066,-0.028567466884851,-0.018548768013716,0.054213829338551,0.106075733900070,0.092338740825653,-0.100633308291435,0.016047734767199,-0.201082289218903,-0.003140932181850,-0.018705880269408,-0.108364701271057,-0.014152287505567,0.073705136775970) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.027443211525679,0.028279040008783,-0.035027157515287,-0.148980796337128,-0.030022297054529,0.053785674273968,0.324819087982178,-0.024314956739545,-0.069851823151112,0.037711482495070,-0.162040814757347,-0.210285738110542,0.114555984735489,-0.001023643882945,-0.048226937651634,0.187334984540939) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.040049254894257,-0.005954104010016,-0.013230598531663,0.016258819028735,0.143738642334938,0.049204893410206,0.100368164479733,0.001073117717169,-0.025213604792953,-0.030421566218138,-0.068300001323223,-0.047239944338799,-0.076432801783085,0.105436213314533,-0.015166507102549,-0.011048790998757) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.133604943752289,0.137617081403732,0.053439408540726,0.067182973027229,0.145967558026314,0.044624872505665,0.091264396905899,0.040170811116695,0.038639154285192,-0.098350226879120,-0.064899116754532,0.110370211303234,0.089584328234196,0.024399515241385,0.020132699981332,0.033842414617538) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.012980560772121,-0.027298804372549,-0.031033590435982,-0.070285856723785,0.031578872352839,0.131212666630745,0.189212888479233,-0.020540930330753,-0.119067743420601,-0.094193108379841,-0.009779053740203,0.038431227207184,0.073461428284645,-0.010293177329004,-0.096391394734383,-0.041039101779461) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.084508448839188,-0.029436981305480,-0.086670964956284,0.000241293237195,-0.307832658290863,0.069839432835579,0.001381416572258,0.040287788957357,0.014996549114585,-0.054503794759512,0.008696510456502,-0.002659353194758,-0.092018656432629,-0.041039228439331,-0.177956148982048,0.039101157337427) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.028792016208172,-0.220041632652283,-0.319802850484848,-0.139301940798759,0.094658270478249,0.077270939946175,-0.014986440539360,-0.067888669669628,0.011926109902561,0.095590300858021,-0.118318527936935,-0.204863026738167,-0.030350072309375,0.041921757161617,-0.006957984063774,-0.058424770832062) * MODEL12_texOff(vec2(0,0));
res += mat4(0.008643849752843,-0.062553457915783,-0.046312294900417,-0.130080968141556,-0.195111081004143,0.072784826159477,-0.007706207688898,0.008632823824883,-0.120432950556278,-0.000234501654631,-0.155698701739311,0.089610420167446,-0.024657789617777,-0.045516431331635,0.132375314831734,-0.121904924511909) * MODEL12_texOff(vec2(0,1));
res += mat4(0.049656882882118,0.023128380998969,0.027605058625340,-0.006917093880475,0.152277246117592,-0.190796270966530,-0.020605320110917,-0.019359050318599,-0.150860309600830,-0.091338142752647,-0.067576803267002,-0.042460866272449,0.137081339955330,0.000946978339925,0.073823325335979,-0.163464397192001) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.080928303301334,0.036081090569496,0.083444297313690,-0.131036713719368,0.307995796203613,-0.257605016231537,-0.057547282427549,-0.088074602186680,0.122503638267517,0.262127101421356,0.025542085990310,0.061217393726110,0.177196770906448,-0.005582473240793,0.016079211607575,0.126125603914261) * MODEL12_texOff(vec2(1,0));
res += mat4(0.036639373749495,0.002515862695873,-0.039694126695395,-0.081324689090252,0.269563764333725,-0.213794827461243,-0.110753603279591,-0.011960129253566,-0.051349025219679,0.022977197542787,-0.266230255365372,0.214489400386810,0.004996507428586,0.040835224092007,-0.022716900333762,-0.058466237038374) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.100778959691525,0.069863758981228,0.150713160634041,0.260874360799789) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL6
//!DESC [AiUpscale_HQ_3x_Photo] mapping 7_6

vec4 hook()
{
vec4 res = vec4(-0.088999338448048,-0.033796690404415,-0.006825966760516,-0.078109845519066);
res += mat4(-0.091779977083206,0.098180741071701,-0.024757212027907,0.019731201231480,0.082052536308765,0.018724363297224,0.065647937357426,0.033077746629715,0.015998972579837,0.098690100014210,0.094743862748146,0.006524848286062,-0.138924732804298,0.082424156367779,0.057587467133999,0.095356598496437) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.134575217962265,0.016292901709676,-0.104016855359077,0.002276136307046,-0.130695611238480,0.029910244047642,0.049022089689970,0.045211698859930,-0.016551306471229,0.010550843551755,-0.021850954741240,-0.038806341588497,-0.164658531546593,0.095285721123219,-0.166245684027672,-0.007016564253718) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.062532544136047,-0.001502978149801,0.129769548773766,-0.037300467491150,0.100866027176380,-0.066762536764145,0.006408844608814,-0.008200383745134,0.092812530696392,-0.129158154129982,-0.173475787043571,-0.007375661283731,-0.213737726211548,-0.035108700394630,0.075469739735126,-0.035171836614609) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.054804019629955,-0.022309355437756,0.093338772654533,0.033744368702173,-0.210237264633179,0.002867986448109,-0.127809584140778,0.058060035109520,0.056985378265381,0.051320344209671,0.116459488868713,0.003712061792612,0.073643505573273,-0.072567515075207,0.094121366739273,0.084230266511440) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.213320374488831,-0.091067031025887,-0.069297455251217,0.001036845613271,-0.237928882241249,0.124463312327862,-0.022577811032534,0.042491700500250,0.115102007985115,0.105277813971043,-0.117592789232731,-0.010444786399603,-0.159338817000389,0.026077460497618,-0.181230708956718,-0.005686823744327) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.233633831143379,0.006604586727917,0.134551301598549,-0.014875801280141,0.118594929575920,-0.037736762315035,0.013768919743598,0.013349641114473,-0.099243842065334,0.005936612840742,0.110555067658424,-0.015688303858042,-0.192927405238152,-0.044501043856144,0.106198132038116,-0.058083072304726) * MODEL7_texOff(vec2(0,1));
res += mat4(0.172554478049278,-0.103152707219124,-0.133950412273407,-0.039336562156677,0.099697321653366,-0.061491612344980,-0.025725372135639,0.046840950846672,0.033035945147276,0.056093305349350,-0.085530526936054,-0.012771315872669,0.125506952404976,-0.228990629315376,-0.121199481189251,-0.011615469120443) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.183112069964409,-0.074631154537201,-0.167135640978813,-0.022148123010993,0.211748898029327,-0.146271228790283,0.042357705533504,0.018528135493398,-0.056883022189140,-0.043972227722406,0.221822530031204,-0.024912005290389,0.131235241889954,0.034379765391350,-0.131683170795441,-0.017421009019017) * MODEL7_texOff(vec2(1,0));
res += mat4(0.227142408490181,0.210014253854752,0.047701172530651,-0.030668163672090,0.139947891235352,0.077170766890049,-0.039144828915596,0.005264093633741,-0.148531958460808,-0.026743862777948,0.022975780069828,-0.038563009351492,0.116991043090820,0.143416017293930,-0.036002174019814,-0.031277008354664) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.110356174409389,-0.294334173202515,-0.007536548655480,0.045704364776611,0.020465387031436,0.070299603044987,-0.082067430019379,0.006214078515768,0.006052376702428,-0.139921858906746,-0.033968385308981,-0.018950343132019,0.118436217308044,0.009854782372713,-0.018183484673500,-0.046624675393105) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.021957138553262,0.042005132883787,-0.107499316334724,0.018164785578847,-0.170593276619911,-0.062320824712515,0.006496384274215,-0.002780494280159,-0.222812920808792,-0.018521051853895,0.180992409586906,-0.058680046349764,0.010820847935975,0.098775334656239,0.136477455496788,-0.106125220656395) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.192763015627861,0.165979310870171,-0.081660866737366,-0.014211144298315,-0.142072424292564,-0.059839263558388,-0.135765880346298,0.022529168054461,0.015905285254121,-0.044031582772732,-0.053272638469934,-0.037042919546366,0.002743957331404,0.118585839867592,-0.000504782190546,0.021767554804683) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.008617172017694,-0.106298059225082,0.147765904664993,0.031651791185141,0.148116424679756,-0.071053758263588,-0.128934115171432,-0.050254657864571,-0.021391695365310,0.023947991430759,0.061408277601004,-0.023070016875863,-0.008248439989984,-0.086702771484852,0.052450574934483,-0.066506706178188) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.191235467791557,-0.090035006403923,-0.266964048147202,0.037082351744175,0.027155403047800,-0.057758178561926,-0.087749853730202,0.034245487302542,0.657494783401489,-0.096700124442577,-0.244249865412712,-0.139307066798210,-0.188430458307266,0.106546603143215,0.038580749183893,-0.203030914068222) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.140228882431984,-0.053795114159584,-0.051407281309366,0.003636791137978,0.067928448319435,0.200096845626831,-0.250987887382507,0.053067885339260,0.049588035792112,-0.132438883185387,0.058663502335548,-0.014711155556142,0.016096558421850,-0.025932535529137,-0.256738603115082,0.218372657895088) * MODEL8_texOff(vec2(0,1));
res += mat4(0.130262166261673,-0.378616034984589,0.078901194036007,0.014424315653741,-0.062596321105957,-0.022917315363884,-0.075012981891632,-0.032427515834570,-0.016319224610925,-0.011203903704882,0.080137699842453,0.013064090162516,-0.012698697857559,-0.050319753587246,0.009778805077076,-0.046323254704475) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.036406029015779,0.056013878434896,0.024905504658818,0.019156433641911,-0.055670365691185,-0.089837223291397,0.109965786337852,0.001573901623487,-0.004925549961627,0.135971009731293,0.287668764591217,0.110043346881866,-0.014606831595302,0.074265748262405,0.102977402508259,-0.049686349928379) * MODEL8_texOff(vec2(1,0));
res += mat4(0.198191523551941,0.064541324973106,0.052198104560375,-0.038197170943022,-0.045601096004248,-0.057837672531605,-0.088746376335621,0.024171741679311,0.057139385491610,0.082565009593964,0.035306334495544,0.025005169212818,-0.069632396101952,-0.144679218530655,0.021551266312599,-0.006446953397244) * MODEL8_texOff(vec2(1,1));
res += mat4(0.082461163401604,-0.006889625918120,0.017245396971703,0.033837433904409,-0.026224749162793,-0.044402357190847,0.122648522257805,-0.054577156901360,-0.001858509494923,0.054730091243982,-0.036462962627411,0.010891228914261,-0.153436258435249,0.006441990844905,0.049243789166212,0.009839890524745) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.205295383930206,0.059387162327766,0.030923627316952,0.023728340864182,0.029533071443439,-0.073560871183872,0.039813268929720,-0.044926691800356,0.271667957305908,0.034284479916096,-0.124935843050480,0.053165394812822,-0.074841119349003,-0.028168721124530,0.130469962954521,-0.019840290769935) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.076534502208233,-0.099104158580303,0.049269407987595,-0.006774208508432,-0.177817314863205,-0.140442982316017,0.085761167109013,0.015277825295925,0.063480846583843,0.226637125015259,0.153894767165184,0.015107364393771,0.041840881109238,-0.007152707781643,-0.143463179469109,-0.044195879250765) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.124787636101246,-0.161894917488098,-0.072085835039616,-0.030465140938759,0.091045498847961,-0.043998684734106,-0.161464273929596,-0.099889643490314,0.002486040582880,0.042207345366478,0.124009199440479,-0.031274467706680,-0.107895463705063,-0.114490196108818,0.135376602411270,-0.003539383411407) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.096894100308418,0.129965633153915,-0.463970899581909,-0.037424083799124,-0.127403825521469,-0.172719389200211,0.242949828505516,-0.046119600534439,0.089587695896626,-0.229008644819260,0.001545138424262,-0.131184682250023,-0.018175870180130,-0.101381227374077,-0.103572532534599,0.189336746931076) * MODEL9_texOff(vec2(0,0));
res += mat4(0.092478893697262,-0.214964658021927,0.103458568453789,0.005877397023141,0.017532156780362,0.061965171247721,-0.091472655534744,0.066654801368713,0.037158902734518,0.462748676538467,-0.272714763879776,-0.020601656287909,-0.047397475689650,-0.356170088052750,0.207582890987396,-0.139475896954536) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.048870835453272,0.014492418617010,-0.027369134128094,-0.031005457043648,-0.048631675541401,0.000770047772676,0.036963332444429,-0.021096875891089,-0.051507499068975,0.089390344917774,0.038137130439281,0.058556385338306,0.000741211930290,0.021007444709539,0.074508078396320,0.047962266951799) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.095293849706650,-0.019379163160920,0.031336016952991,-0.013794946484268,-0.022833609953523,-0.021497167646885,0.111393205821514,0.011883437633514,-0.267410457134247,-0.033767890185118,0.306960523128510,0.027893830090761,0.108063042163849,-0.026100764051080,0.037921275943518,0.010035058483481) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.108387514948845,0.105729840695858,-0.007265635300428,-0.005815672222525,-0.068103447556496,0.005418768152595,0.004990392830223,0.017677191644907,-0.193036258220673,0.063714236021042,-0.040757924318314,-0.026485361158848,0.015840012580156,0.001646410790272,0.099446475505829,0.004688088782132) * MODEL9_texOff(vec2(1,1));
res += mat4(0.141147986054420,-0.014969486743212,-0.023080648854375,-0.006964000873268,-0.164317756891251,-0.078406564891338,0.063208796083927,-0.051196128129959,0.056113984435797,-0.078613020479679,-0.130847111344337,0.000006962456609,-0.065751634538174,-0.168472439050674,-0.088067494332790,-0.028674887493253) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.096287466585636,-0.141895174980164,-0.098535619676113,-0.109937340021133,-0.230852246284485,0.026699494570494,-0.040347192436457,-0.030438337475061,0.044143479317427,0.117196157574654,0.046727530658245,0.010357781313360,-0.344833463430405,-0.107088379561901,0.331045597791672,-0.044237919151783) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.041336495429277,0.054394852370024,-0.057285524904728,-0.042132794857025,-0.061957806348801,0.110323958098888,0.035042740404606,0.010760038159788,-0.027394523844123,0.060269888490438,0.006156783085316,-0.004125613719225,-0.145236477255821,0.137809142470360,-0.050397556275129,-0.024681448936462) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.316111236810684,-0.040877260267735,-0.075996823608875,-0.033709902316332,-0.032721824944019,-0.147729367017746,-0.426817238330841,-0.019170694053173,-0.049575269222260,-0.303053438663483,-0.058700453490019,-0.032271314412355,0.077713236212730,-0.386109262704849,-0.061149496585131,-0.016530044376850) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.104875683784485,0.061596341431141,0.236484527587891,-0.234580397605896,0.036170069128275,0.140780761837959,-0.075605958700180,-0.070028215646744,-0.113938778638840,0.039380613714457,0.028199233114719,0.030719317495823,0.019905339926481,0.145825341343880,-0.410586088895798,0.105317078530788) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.069288253784180,-0.106213584542274,0.063195236027241,-0.058398641645908,0.083254024386406,0.049221072345972,-0.031813647598028,-0.008499055169523,-0.269079059362411,0.085633099079132,0.026346866041422,0.005479032173753,-0.200902476906776,-0.045015167444944,0.046379584819078,0.035406634211540) * MODEL10_texOff(vec2(0,1));
res += mat4(0.172147482633591,-0.038717865943909,-0.168045148253441,-0.061445828527212,0.003096804255620,-0.132872655987740,-0.071640416979790,0.010220258496702,-0.061936318874359,-0.123787365853786,0.052338734269142,-0.007365526165813,0.016641488298774,-0.048413511365652,-0.035148672759533,-0.024298340082169) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.092063389718533,-0.084057539701462,0.014682304114103,-0.152435839176178,-0.166699439287186,0.033322278410196,-0.022998970001936,0.015814807265997,0.101500377058983,0.042000014334917,-0.096248313784599,-0.009067729115486,0.129479676485062,0.130303680896759,-0.185161545872688,-0.011400665156543) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.006988012697548,0.045311745256186,-0.008413219824433,-0.016779387369752,-0.052031382918358,-0.007797528989613,0.037132751196623,0.008502195589244,-0.037397060543299,0.202911287546158,-0.055374104529619,0.004671017639339,0.186939716339111,0.038683969527483,0.019621148705482,0.011771388351917) * MODEL10_texOff(vec2(1,1));
res += mat4(0.206790104508400,0.145971640944481,0.112549513578415,0.008976921439171,0.034190163016319,-0.083615563809872,0.055276345461607,0.030407087877393,-0.069562412798405,-0.002180606592447,-0.083453759551048,0.001252776477486,-0.087126992642879,-0.029834173619747,0.040194600820541,-0.004773264285177) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.177951529622078,-0.005496707279235,-0.103137239813805,0.011940733529627,0.008959094062448,-0.077358379960060,0.086857311427593,-0.030047100037336,0.117685057222843,0.058248225599527,-0.050663992762566,0.001863687182777,-0.084277831017971,-0.063064761459827,-0.135618686676025,0.046122405678034) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.161692470312119,0.249476358294487,0.016212081536651,-0.009604678489268,0.048868205398321,-0.201545387506485,-0.057106733322144,-0.008238782174885,-0.011243934743106,0.179420769214630,0.110761575400829,-0.021242447197437,0.037605311721563,-0.002946038497612,-0.110839702188969,0.060185518115759) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.038075082004070,0.080376967787743,0.054393641650677,0.011837575584650,-0.022449877113104,0.112626373767853,0.057502068579197,0.012471794150770,0.056969322264194,-0.207549691200256,-0.068149738013744,-0.009720128029585,-0.024366017431021,0.089958779513836,0.055675227195024,0.060408607125282) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.099325262010098,0.044118098914623,-0.024615785107017,-0.013019378297031,-0.018385583534837,0.062064535915852,0.198969617486000,-0.027728689834476,0.090180322527885,0.191360101103783,-0.043827686458826,0.025512604042888,-0.036531850695610,-0.008972877636552,0.011078507639468,-0.010587570257485) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.017018981277943,0.363488197326660,-0.059391058981419,-0.024822335690260,0.180495634675026,-0.327653139829636,0.096870012581348,-0.014253156259656,-0.081553816795349,0.188562795519829,-0.048216871917248,0.011322500184178,-0.244922176003456,-0.374080955982208,0.092152595520020,0.094945967197418) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.116745799779892,0.022402193397284,-0.068871892988682,-0.001939405687153,-0.025097092613578,-0.022025922313333,0.002090086461976,-0.012761825695634,-0.050028834491968,-0.168320536613464,0.066488943994045,-0.027872785925865,0.023128245025873,0.129335239529610,-0.044654753059149,0.018319625407457) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.049759216606617,0.074892640113831,-0.071605615317822,-0.005274954251945,0.041052818298340,-0.098325215280056,0.088440842926502,-0.013317002914846,0.004183001816273,-0.143695622682571,-0.030051799491048,-0.012605188414454,0.073022708296776,-0.048519335687160,-0.106924735009670,0.049428444355726) * MODEL11_texOff(vec2(1,0));
res += mat4(0.013028436340392,0.256950616836548,-0.037180237472057,-0.022458083927631,-0.093901820480824,-0.051196388900280,0.031172806397080,0.033110558986664,-0.160549715161324,0.106726936995983,-0.031299594789743,0.004920993000269,0.140091642737389,-0.133195877075195,-0.028058186173439,0.024508379399776) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.011952415108681,-0.013034699484706,0.075667515397072,0.043596900999546,0.092119924724102,-0.060098238289356,-0.012559331022203,0.014041075482965,-0.032436151057482,-0.010216522961855,0.033020630478859,-0.027449341490865,0.034612420946360,0.073195330798626,0.005025330465287,-0.014966410584748) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.088805347681046,-0.089321315288544,-0.110109493136406,0.222688153386116,-0.048053849488497,0.015305702574551,-0.104268230497837,0.038362052291632,-0.034416928887367,0.030137019231915,0.049072928726673,-0.089053511619568,0.185782417654991,-0.004512186162174,0.024215327575803,0.013257267884910) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.201516613364220,-0.053450308740139,-0.042548447847366,0.170535638928413,0.111922167241573,0.033632088452578,0.073002301156521,0.035344514995813,0.121377922594547,0.124200589954853,-0.103883065283298,-0.031551077961922,-0.112158559262753,0.017755188047886,0.047001473605633,0.014393732883036) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.056384589523077,-0.164013311266899,0.137345537543297,-0.000899863778614,0.022708460688591,-0.025067668408155,0.091704651713371,0.040342319756746,-0.035321548581123,-0.012201782315969,0.069585464894772,0.006445431616157,0.065424948930740,-0.062354534864426,-0.052426058799028,-0.018008368089795) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.095995254814625,-0.264892429113388,-0.415147632360458,-0.779275178909302,0.105375826358795,0.177560046315193,0.096599072217941,-0.017716333270073,0.531033217906952,0.022634146735072,0.018140010535717,0.122117742896080,-0.167481347918510,0.044794067740440,0.118636012077332,0.012609631754458) * MODEL12_texOff(vec2(0,0));
res += mat4(0.122217938303947,0.096073240041733,-0.089378364384174,0.220547541975975,-0.182020217180252,-0.113929666578770,0.098229736089706,-0.020194062963128,0.110131785273552,0.183110579848289,-0.016345556825399,-0.027006125077605,-0.142832994461060,0.120399199426174,-0.118688814342022,0.033025652170181) * MODEL12_texOff(vec2(0,1));
res += mat4(0.005267524626106,-0.061384052038193,0.020656820386648,-0.099194593727589,0.084460660815239,-0.088436141610146,0.014916906133294,0.020164970308542,-0.022203240543604,0.051472246646881,-0.025467257946730,0.020012183114886,0.160726696252823,-0.241078034043312,-0.269511550664902,-0.041024554520845) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.028572637587786,-0.015966573730111,0.001507114735432,-0.088562987744808,-0.146888688206673,0.173600435256958,0.012664913199842,-0.005445664748549,-0.183983504772186,0.080675520002842,0.207821816205978,-0.072447851300240,-0.180730417370796,-0.060529958456755,0.172191530466080,0.018637280911207) * MODEL12_texOff(vec2(1,0));
res += mat4(0.076903350651264,0.029524158686399,-0.030488451942801,-0.012581595219672,0.025427931919694,0.508822917938232,0.010098902508616,0.006962235551327,-0.203986480832100,-0.030610799789429,0.037381719797850,0.014014747925103,0.149672344326973,-0.169721156358719,0.107971876859665,0.030152546241879) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.131518974900246,0.021855257451534,0.103156022727489,0.836089015007019) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_HQ_3x_Photo] mapping 8_1

vec4 hook()
{
vec4 res = vec4(-0.174807086586952,-0.382339715957642,-0.268716961145401,-0.023393629118800);
res += mat4(-0.061946555972099,-0.021233322098851,-0.023202419281006,0.016242319718003,-0.041080869734287,0.095714055001736,-0.018538070842624,0.015438229776919,-0.045203913003206,-0.014438556507230,0.026483191177249,-0.012148713693023,0.067999884486198,0.015802439302206,0.008877902291715,0.004603385459632) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.003827383741736,-0.028134947642684,0.021323135122657,-0.043222166597843,-0.032151781022549,0.044481478631496,-0.015557056292892,-0.006163115613163,-0.010036930441856,0.014971666038036,0.031083142384887,0.050940822809935,-0.080071873962879,-0.066139727830887,-0.069719545543194,0.030425563454628) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.001065473072231,-0.025346316397190,-0.008473723195493,0.012324406765401,0.007832290604711,0.170472562313080,-0.016378002241254,0.063358835875988,0.038102224469185,-0.008987057022750,0.000653144088574,0.021324489265680,-0.049361009150743,-0.039360761642456,-0.005448937416077,0.002053711563349) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.128461793065071,-0.102263957262039,-0.136629536747932,-0.044755887240171,0.105066798627377,-0.035335250198841,-0.004628481343389,-0.022863006219268,0.010184932500124,-0.149549767374992,-0.023653058335185,-0.102715887129307,0.024706603959203,0.041072875261307,-0.099321842193604,-0.005228534806520) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.128077343106270,-0.260611146688461,-0.438217699527740,0.067004360258579,0.310457527637482,-0.102144122123718,-0.139923557639122,-0.285851329565048,-0.026548691093922,-0.045063924044371,-0.185287490487099,0.108342744410038,0.068064600229263,-0.327180027961731,-0.206415072083473,-0.046452693641186) * MODEL1_texOff(vec2(0,0));
res += mat4(0.010810704901814,0.049450162798166,0.066586628556252,0.047858767211437,0.069851085543633,-0.006279947701842,0.090257614850998,0.058061037212610,-0.014451635070145,-0.014138801954687,0.033494595438242,0.025032553821802,-0.048205506056547,-0.143387004733086,-0.059446685016155,-0.012030479498208) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.072039201855659,-0.037012908607721,-0.000846970477141,-0.039078548550606,0.090159036219120,-0.034118838608265,-0.017920358106494,-0.047826152294874,-0.028116349130869,-0.055696014314890,-0.076021872460842,0.079041704535484,-0.199920997023582,0.033150270581245,0.137354731559753,-0.018918853253126) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.253987610340118,-0.077565014362335,0.099512740969658,-0.204467862844467,0.120934270322323,-0.091311722993851,-0.038956649601460,0.125725165009499,-0.102120518684387,0.016848837956786,0.068678036332130,-0.033486340194941,-0.212505623698235,-0.070074617862701,0.032150894403458,0.094663299620152) * MODEL1_texOff(vec2(1,0));
res += mat4(0.214389547705650,-0.053355727344751,0.069954402744770,0.040446691215038,0.003894384950399,-0.018133813515306,-0.043127320706844,0.033173508942127,0.042341522872448,0.027409933507442,0.022346055135131,0.014554804190993,-0.103880934417248,0.024931401014328,-0.029345700517297,-0.001401497866027) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.025676121935248,-0.032671339809895,-0.013381343334913,0.023538151755929,-0.026213292032480,-0.028425315394998,-0.094413533806801,0.002981749828905,-0.045788548886776,-0.079009175300598,0.067619383335114,-0.103052116930485,-0.048601847141981,0.027090409770608,-0.044398698955774,-0.006192886270583) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.077184833586216,0.004998499993235,0.116775885224342,0.045165102928877,0.035411961376667,-0.081521846354008,0.056119915097952,0.054220873862505,0.081475012004375,0.160700172185898,0.072756484150887,0.005556453019381,0.013032696209848,0.146928489208221,-0.008670221082866,0.065994575619698) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.059983231127262,-0.050473913550377,-0.000066297201556,-0.113427288830280,-0.060115985572338,-0.073107369244099,-0.011465146206319,0.006434412673116,0.023243494331837,0.048321645706892,0.005404299590737,0.065664045512676,-0.050264541059732,-0.022802777588367,-0.074913896620274,0.061009705066681) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.016025815159082,-0.067269541323185,0.103120684623718,-0.003121363231912,-0.138557136058807,-0.088085286319256,0.001310310326517,-0.019537668675184,0.077758878469467,0.229760184884071,-0.030340164899826,0.095335707068443,0.002964094746858,-0.068414516746998,0.073054395616055,0.021742327138782) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.030409798026085,0.022161163389683,0.037094216793776,-0.022704169154167,-0.123645439743996,-0.042294383049011,-0.131724134087563,-0.028478931635618,-0.087856024503708,-0.002564894268289,0.009157523512840,0.065511710941792,-0.047047767788172,-0.418438434600830,-0.118764974176884,-0.071349158883095) * MODEL2_texOff(vec2(0,0));
res += mat4(0.048941910266876,-0.044673908501863,0.009239473380148,-0.016857896000147,-0.055762439966202,-0.120805397629738,-0.015871219336987,0.031765688210726,-0.123507544398308,-0.036670867353678,0.032494433224201,-0.062127638608217,0.005717125255615,-0.175400048494339,0.000704451405909,-0.032419838011265) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.002420413075015,-0.007313365116715,0.092763625085354,0.017062801867723,-0.044368285685778,-0.078913740813732,-0.033589527010918,0.045596942305565,-0.006862599868327,0.088949769735336,0.017165541648865,0.031630977988243,-0.020962949842215,0.024185189977288,-0.008255118504167,-0.006666221655905) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.016882762312889,-0.056493662297726,0.042597822844982,-0.069670982658863,-0.137746632099152,-0.035697635263205,0.035621020942926,-0.013560383580625,-0.153844550251961,-0.018722601234913,0.034745860844851,-0.240626841783524,-0.016390074044466,0.020945636555552,-0.007852315902710,0.014053851366043) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.008159058168530,0.022661536931992,0.063169129192829,0.023260096088052,-0.057788971811533,-0.029057949781418,0.013066365383565,0.036811623722315,-0.012870930135250,-0.066631063818932,0.005764089524746,0.067325852811337,-0.085300564765930,0.030648987740278,-0.093679212033749,-0.008092544041574) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.057923845946789,-0.023975886404514,-0.124714002013206,-0.014803432859480,0.072470501065254,0.139101952314377,0.042794305831194,0.010865718126297,-0.047915853559971,-0.113357655704021,0.117130771279335,0.048381704837084,0.106084041297436,0.084584802389145,-0.062987066805363,0.046735409647226) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.121560238301754,-0.218646764755249,-0.164191395044327,-0.052867498248816,0.077902249991894,0.059396889060736,-0.015401605516672,0.039529293775558,0.091917201876640,0.016386777162552,0.047724563628435,0.173410400748253,-0.086655087769032,0.032726574689150,-0.025031404569745,-0.202040016651154) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.038839042186737,-0.034499388188124,0.044350977987051,0.012887259945273,-0.087807975709438,-0.139486685395241,-0.031972762197256,-0.005405832547694,-0.091709867119789,-0.102141700685024,-0.099026352167130,-0.032396089285612,-0.026218907907605,0.047788791358471,-0.036839537322521,-0.018711872398853) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.315170884132385,0.227451622486115,0.033824715763330,0.006701670587063,-0.221761122345924,-0.161709904670715,0.193874970078468,-0.035717181861401,-0.159145936369896,0.087573729455471,-0.140208765864372,0.125383391976357,0.171679705381393,-0.056837249547243,-0.030984364449978,0.041348766535521) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.250538736581802,0.208413451910019,-0.007451513316482,0.035710964351892,-0.267846494913101,-0.225981265306473,-0.199077695608139,-0.081169560551643,-0.171461060643196,0.145408242940903,0.202058508992195,-0.296184301376343,0.198824852705002,-0.201973244547844,-0.039091523736715,0.223237425088882) * MODEL3_texOff(vec2(0,0));
res += mat4(0.036012835800648,-0.019885402172804,-0.102624252438545,-0.039491817355156,0.045129463076591,0.067075639963150,0.038987025618553,0.018465695902705,-0.044461876153946,-0.011424663476646,0.047241542488337,0.146016731858253,0.205810934305191,-0.007996028289199,0.030920244753361,-0.103058062493801) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.036572042852640,0.028910676017404,0.016976742073894,0.005352007225156,0.284825980663300,0.039230644702911,0.025693066418171,0.064350239932537,-0.013896392658353,0.019310522824526,0.037102669477463,-0.033166266977787,-0.067966446280479,0.049454163759947,0.085966885089874,-0.024206269532442) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.251900523900986,0.004497095011175,-0.053178988397121,-0.130069211125374,0.027281593531370,0.198094889521599,0.106431461870670,0.035247266292572,0.143285572528839,-0.153814166784286,-0.017967149615288,0.126408800482750,0.138620376586914,0.077410705387592,0.039803210645914,-0.008712838403881) * MODEL3_texOff(vec2(1,0));
res += mat4(0.000984585611150,0.011261174455285,-0.012881218455732,0.022551862522960,-0.074953675270081,0.030582610517740,-0.044116742908955,-0.006589109078050,0.021501272916794,-0.068657837808132,-0.004773666150868,0.055486544966698,-0.001726273796521,-0.025682238861918,-0.062652282416821,-0.056168917566538) * MODEL3_texOff(vec2(1,1));
res += mat4(0.036858644336462,-0.024894677102566,-0.065899215638638,-0.019962159916759,-0.074381053447723,-0.049568738788366,-0.076794564723969,0.046964466571808,-0.024458546191454,-0.018608495593071,0.098791576921940,0.024217450991273,0.057784780859947,0.098526589572430,-0.068026222288609,0.017890013754368) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.016910815611482,-0.051366496831179,0.061909437179565,-0.128655508160591,0.173837751150131,0.129956558346748,0.082247346639633,0.067406579852104,0.013365568593144,0.098001740872860,0.038865722715855,-0.019376946613193,-0.008346042595804,0.054490275681019,-0.130529910326004,0.096737727522850) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.078069858253002,-0.117816537618637,-0.025514742359519,-0.094430617988110,-0.011185215786099,0.056461703032255,-0.040728721767664,-0.053239140659571,-0.015766248106956,0.051177546381950,-0.021307734772563,-0.012709856033325,0.053965121507645,0.033425901085138,0.035703130066395,-0.023171238601208) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.002616865094751,0.047539085149765,0.003539007855579,-0.022415410727262,0.036314591765404,0.112089768052101,0.048964392393827,0.125570088624954,0.037975732237101,0.029063602909446,-0.126004114747047,0.031686879694462,-0.125747784972191,-0.017017528414726,0.068501293659210,0.019295321777463) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.107308663427830,0.343184381723404,-0.234765514731407,0.331334769725800,-0.202176570892334,-0.034774478524923,-0.174370944499969,-0.067585676908493,0.026941953226924,-0.206392019987106,-0.174433916807175,-0.067293979227543,0.078596413135529,-0.056900665163994,0.022733764722943,0.086005806922913) * MODEL4_texOff(vec2(0,0));
res += mat4(0.029737148433924,0.116019614040852,0.013109087944031,-0.044135808944702,0.033041529357433,-0.007093842141330,-0.000489236845169,-0.019641509279609,0.118158891797066,0.007435555569828,0.034738428890705,0.122277669608593,0.090599946677685,0.095995277166367,0.073469504714012,-0.032102294266224) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.127979740500450,-0.000099821605545,0.028943257406354,-0.008710749447346,-0.024105858057737,-0.014905968680978,-0.084949940443039,0.011008438654244,0.110407724976540,-0.015703428536654,-0.068182416260242,-0.019913379102945,0.181209102272987,0.066042639315128,-0.026954876258969,0.031235499307513) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.065922863781452,0.176953762769699,0.054591901600361,-0.133911803364754,0.073722325265408,0.022737983614206,-0.014029870741069,0.039519194513559,-0.192720875144005,-0.004884062800556,0.118585050106049,0.000907892885152,-0.295153111219406,-0.006279199849814,-0.161104798316956,-0.004933452233672) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.042853001505136,0.058457374572754,-0.060665678232908,-0.034049045294523,0.028114546090364,0.051461163908243,-0.035494342446327,-0.026989005506039,0.007468805648386,-0.001363968127407,0.077443175017834,0.036688178777695,0.009843758307397,0.078956820070744,-0.090924590826035,-0.005891591310501) * MODEL4_texOff(vec2(1,1));
res += mat4(0.163217723369598,0.090312100946903,-0.017824931070209,0.018600460141897,-0.047176856547594,-0.091471977531910,-0.015025991015136,-0.060862824320793,0.153465270996094,0.161365330219269,-0.033971626311541,0.014897441491485,0.024860154837370,-0.083512842655182,-0.030236145481467,-0.109191574156284) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.200902283191681,0.075375683605671,-0.061048068106174,0.031565986573696,-0.029519176110625,-0.022715143859386,-0.038178730756044,-0.045232079923153,0.193902522325516,0.238692581653595,0.110239997506142,0.019110627472401,0.112379446625710,0.040012415498495,0.137499183416367,0.034652281552553) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.059424489736557,0.208700314164162,0.046414732933044,0.036279276013374,0.051110051572323,0.037165995687246,-0.008545460179448,-0.028393022716045,0.107380323112011,0.138564661145210,0.003598861629143,-0.005124339368194,0.038064934313297,-0.019509239122272,0.036040138453245,0.008159574121237) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.289655506610870,0.011308013461530,-0.029273362830281,-0.017161067575216,0.016726413741708,0.109514109790325,-0.069508105516434,0.046609118580818,-0.325732111930847,-0.087632127106190,0.193603694438934,0.005758637096733,-0.089360855519772,-0.081122837960720,-0.027182495221496,-0.031270138919353) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.132116377353668,-0.033463675528765,-0.094701193273067,-0.007671597879380,-0.052113912999630,0.255879193544388,0.142453566193581,0.244194254279137,-0.114483632147312,-0.306033521890640,-0.051182132214308,-0.005437595769763,-0.201299414038658,-0.162091553211212,-0.010654808953404,-0.074278257787228) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.099213071167469,0.060895327478647,0.050115134567022,0.029481763020158,-0.019035913050175,0.004634047392756,-0.012499400414526,-0.054391607642174,0.013644583523273,-0.016033539548516,0.043154738843441,0.011210592463613,-0.070217296481133,-0.031340710818768,0.021050952374935,-0.022189030423760) * MODEL5_texOff(vec2(0,1));
res += mat4(0.144804075360298,0.109179727733135,0.064757913351059,-0.014110431075096,-0.046766448765993,0.191158324480057,-0.071414634585381,-0.062796689569950,-0.181154534220695,-0.161792382597923,-0.047628201544285,-0.003952530678362,0.112594611942768,0.056170053780079,-0.074313171207905,-0.059774812310934) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.024702185764909,0.107073456048965,-0.038519814610481,-0.061541527509689,-0.243505001068115,0.241597175598145,-0.067413374781609,-0.126099124550819,-0.055535905063152,-0.171587958931923,0.048666093498468,-0.030023578554392,0.008919849060476,0.028389481827617,-0.068413913249969,0.029104245826602) * MODEL5_texOff(vec2(1,0));
res += mat4(0.120294608175755,0.081935994327068,-0.025885617360473,0.019262555986643,0.056101523339748,0.066576942801476,-0.012247474864125,-0.002685621846467,-0.035387925803661,0.002738447394222,0.041260078549385,0.034247890114784,0.062582366168499,0.005067857913673,0.034313462674618,0.005334649235010) * MODEL5_texOff(vec2(1,1));
res += mat4(0.052220441401005,0.037421446293592,-0.089845061302185,0.082764342427254,0.064051173627377,0.040317147970200,0.043609619140625,-0.027215771377087,-0.042850472033024,-0.128062233328819,0.018836151808500,-0.018840558826923,-0.000210977435927,0.012263807468116,-0.088853694498539,0.060915756970644) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.061473760753870,0.052477270364761,0.049350418150425,0.070255629718304,0.159645661711693,0.111357994377613,-0.031306914985180,0.006473965011537,-0.035340692847967,-0.119716681540012,-0.144644021987915,-0.196929246187210,0.016095925122499,0.022523514926434,0.021701147779822,0.055101130157709) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.069100819528103,0.015170559287071,0.033695425838232,0.025751696899533,0.098527222871780,0.141021400690079,0.078179039061069,-0.002863514935598,0.032599553465843,0.004124836064875,-0.028480991721153,-0.003957220353186,-0.019749473780394,-0.073886513710022,0.056847408413887,0.063047781586647) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.034178197383881,-0.095182210206985,0.107044406235218,-0.114470817148685,-0.023258425295353,0.098284229636192,-0.066489070653915,-0.004794207401574,0.082410439848900,-0.040421467274427,0.103843927383423,-0.000120173353935,-0.000048944002629,-0.084860794246197,0.094644494354725,0.144706651568413) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.086740761995316,-0.364501118659973,-0.260864228010178,-0.136142343282700,-0.125306919217110,0.102745987474918,0.161941036581993,0.013038127683103,0.069991685450077,0.257192343473434,0.359107017517090,0.280909866094589,-0.133936166763306,-0.253405451774597,-0.310120195150375,-0.445151686668396) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.056791387498379,-0.086567938327789,0.047137495130301,0.002210110193118,0.006047286558896,0.046701736748219,0.094220742583275,0.053812339901924,-0.048281982541084,-0.042624324560165,-0.135333895683289,-0.137208849191666,0.081432104110718,0.023687349632382,-0.022938998416066,0.072335079312325) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.007837892509997,0.011509138159454,-0.046639733016491,0.077555075287819,-0.020048033446074,-0.018083212897182,0.024377305060625,-0.024740437045693,-0.065558999776840,0.029649481177330,-0.050814896821976,0.059637583792210,0.062065444886684,0.060906961560249,0.128195002675056,0.049374606460333) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.041204638779163,0.006230670493096,0.040487613528967,0.251768350601196,0.179430574178696,0.088078975677490,0.022103913128376,0.037272684276104,0.026076897978783,0.043244484812021,0.007743281777948,-0.149088531732559,0.221479862928391,0.136771082878113,0.077251739799976,0.168638885021210) * MODEL6_texOff(vec2(1,0));
res += mat4(0.158028259873390,0.041154425591230,-0.046118091791868,-0.007853006012738,0.146223217248917,0.083316609263420,-0.032089326530695,-0.001715244841762,0.025625757873058,-0.035662878304720,0.041790470480919,-0.072740063071251,0.036149103194475,-0.000792530307081,-0.035988710820675,-0.018565647304058) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.004425887018442,0.014478566125035,0.001140435575508,0.932460784912109) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_HQ_3x_Photo] mapping 8_2

vec4 hook()
{
vec4 res = vec4(-0.262492358684540,-0.015407572500408,-0.243168205022812,-0.258134722709656);
res += mat4(-0.107596158981323,-0.076099209487438,-0.022367114201188,-0.004730523098260,-0.042864147573709,-0.042647231370211,-0.018397571519017,0.047107733786106,-0.067927680909634,0.051335234194994,0.005322368815541,-0.086120896041393,0.026002286002040,-0.002862122608349,0.041504774242640,0.067943893373013) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.060809023678303,-0.013920716941357,0.030335148796439,-0.091469131410122,-0.019448831677437,-0.020951703190804,0.052323512732983,0.020569249987602,0.025864558294415,-0.061829131096601,0.149069607257843,0.053785398602486,-0.026625920087099,-0.053778782486916,0.069167375564575,-0.120213903486729) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.000599452119786,-0.009353967383504,0.121234625577927,-0.026590412482619,0.086421087384224,0.007247005123645,0.031816132366657,-0.023501237854362,0.027575183659792,0.021062642335892,0.034588698297739,0.000115552036732,0.003646458731964,-0.014687116257846,-0.090878657996655,0.055080644786358) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.006284145172685,0.024258730933070,0.001880545634776,0.090770557522774,0.022137457504869,0.028442174196243,-0.020079396665096,0.002197726862505,-0.088292956352234,-0.092326834797859,0.213994637131691,0.018470536917448,-0.133677512407303,0.029048321768641,0.069205649197102,0.185546711087227) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.022809276357293,0.094377346336842,0.114127479493618,-0.094662405550480,-0.040303293615580,-0.083416119217873,0.089461684226990,-0.182670280337334,-0.202394708991051,-0.018122093752027,0.411736458539963,-0.203179553151131,-0.424900561571121,-0.008530993945897,0.218465298414230,-0.416917979717255) * MODEL1_texOff(vec2(0,0));
res += mat4(0.074490509927273,-0.047234725207090,0.168373972177505,0.073777541518211,0.055751781910658,0.014676862396300,0.004812221974134,0.090808123350143,0.014094293117523,0.129375189542770,0.330639600753784,-0.033633589744568,-0.366019010543823,-0.031366672366858,-0.175222247838974,-0.094015821814537) * MODEL1_texOff(vec2(0,1));
res += mat4(0.012297414243221,-0.016401384025812,0.031155453994870,-0.002379684010521,0.040857009589672,-0.010186591185629,0.041936781257391,-0.005432747304440,0.007317823357880,-0.068671874701977,-0.033244851976633,-0.019361607730389,0.044302556663752,-0.064754739403725,0.075095415115356,0.001003424986266) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.057720899581909,-0.104855433106422,-0.001496669836342,-0.051545694470406,0.147488504648209,-0.018339689821005,0.000570502539631,0.100267283618450,0.018013475462794,0.061793237924576,0.045148316770792,-0.011381735093892,0.094391345977783,0.004946128465235,-0.038355544209480,0.104884251952171) * MODEL1_texOff(vec2(1,0));
res += mat4(0.053435269743204,0.063680075109005,0.030310584232211,0.141295716166496,0.014927357435226,-0.036810897290707,-0.002686327090487,-0.057848103344440,-0.034786019474268,0.058260604739189,-0.039608519524336,-0.067689850926399,0.013786322437227,-0.086855091154575,-0.070049405097961,-0.012797805480659) * MODEL1_texOff(vec2(1,1));
res += mat4(0.043558344244957,-0.037778470665216,0.024026593193412,0.071194224059582,0.020762616768479,-0.044602554291487,-0.091817885637283,-0.031725071370602,0.057631295174360,0.001820866717026,-0.045155696570873,0.099884219467640,-0.033364776521921,-0.000903195294086,-0.044199697673321,0.057792622596025) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.004232252947986,0.008149699307978,-0.098182879388332,0.046519864350557,0.051969777792692,-0.115319162607193,-0.155478402972221,-0.139155611395836,0.015504053793848,0.066530860960484,0.075723111629486,0.095803283154964,-0.007074664346874,0.020794404670596,-0.010037937201560,-0.006635772064328) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.004826481454074,0.035334080457687,-0.032843902707100,-0.047364544123411,-0.014331322163343,0.040031693875790,-0.079341977834702,0.077400654554367,-0.042737454175949,0.002006174065173,0.065072752535343,0.050965495407581,-0.025424679741263,-0.059570159763098,-0.020593808963895,-0.019592590630054) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.032100129872561,-0.045990940183401,0.077577807009220,-0.069819256663322,-0.045953724533319,-0.120373733341694,0.138711839914322,0.009187621064484,0.076598189771175,0.118663363158703,0.078890614211559,0.103601694107056,0.026779603213072,0.001552757923491,-0.060889400541782,-0.035104107111692) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.209637522697449,0.199631556868553,-0.294289052486420,0.209276676177979,0.008717034012079,0.151236087083817,-0.153547257184982,0.043070107698441,-0.153160616755486,-0.215212851762772,-0.018876682966948,0.213435947895050,-0.186143770813942,-0.057413563132286,-0.119096770882607,-0.170760050415993) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.038913875818253,-0.036414574831724,0.017302908003330,0.118498012423515,-0.048450600355864,-0.152931809425354,-0.027712212875485,-0.075861133635044,-0.054727990180254,0.139420777559280,-0.131352588534355,0.082460291683674,-0.067592933773994,0.043555136770010,-0.546617448329926,-0.054728113114834) * MODEL2_texOff(vec2(0,1));
res += mat4(0.005678200628608,0.028293857350945,0.053062982857227,0.055454697459936,-0.032078206539154,-0.028650559484959,-0.015952171757817,-0.012027820572257,-0.202085092663765,-0.048835944384336,-0.024627245962620,0.080439411103725,-0.041425988078117,-0.041857428848743,-0.034738499671221,-0.047230940312147) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.015967261046171,0.039457999169827,-0.054929144680500,-0.000163520948263,-0.060888711363077,-0.154259771108627,-0.116785965859890,-0.007953176274896,-0.173338428139687,0.048501152545214,-0.144223362207413,0.064135231077671,-0.109608061611652,0.018092883750796,-0.001655287807807,-0.062624111771584) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.061352800577879,0.118381276726723,0.099361218512058,0.013204006478190,-0.007188702467829,-0.087668627500534,-0.057042658329010,-0.018275568261743,0.055626172572374,-0.060652248561382,-0.055281050503254,0.140059992671013,-0.000135223308462,-0.117561459541321,-0.125498622655869,-0.025181511417031) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.044803131371737,-0.039174422621727,0.060190327465534,-0.076265521347523,0.007338646799326,0.015950413420796,0.021835362538695,0.061989635229111,-0.023630456998944,0.049862556159496,-0.035162992775440,0.083554603159428,0.017296690493822,0.011439780704677,0.052604757249355,-0.089657619595528) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.114888638257980,0.010557104833424,-0.274993181228638,-0.045661482959986,-0.058887854218483,-0.093152739107609,-0.100761562585831,-0.050321590155363,-0.094068564474583,0.036442462354898,-0.025069478899240,0.001228549401276,0.156901627779007,0.008719665929675,-0.117741487920284,-0.063868135213852) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.021468173712492,0.021987607702613,-0.018922910094261,0.202567800879478,-0.056817922741175,-0.031353317201138,-0.193873569369316,0.019034853205085,-0.028939859941602,0.015998106449842,-0.105770379304886,-0.039900019764900,0.019479308277369,-0.067886829376221,-0.116335287690163,0.028650877997279) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.130624160170555,-0.015026884153485,0.006701950449497,0.012664739042521,-0.035214968025684,0.049390379339457,-0.029365174472332,0.026957841590047,-0.125102192163467,0.195262625813484,0.045611348003149,0.065037995576859,0.072765968739986,0.079059652984142,-0.030832497403026,0.068064212799072) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.039724335074425,-0.144686535000801,-0.262372434139252,0.166715711355209,0.071062780916691,-0.004429561085999,-0.109941221773624,-0.174449563026428,-0.046514093875885,-0.065114118158817,0.066212728619576,-0.094944491982460,0.235730990767479,-0.117848858237267,0.020017120987177,0.111598923802376) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.002685559680685,-0.135823905467987,-0.094456344842911,-0.179380387067795,-0.121978439390659,-0.079810641705990,-0.043439872562885,-0.083361536264420,-0.084140904247761,0.032291442155838,-0.017503036186099,0.020552650094032,-0.029145345091820,0.028448868542910,-0.021554410457611,-0.082500770688057) * MODEL3_texOff(vec2(0,1));
res += mat4(0.035059820860624,-0.063261292874813,-0.019100381061435,0.151214018464088,0.146504804491997,0.082797996699810,-0.033693131059408,0.078419744968414,-0.030716322362423,-0.022630168125033,0.040132436901331,-0.015591280534863,-0.048859130591154,-0.028799727559090,-0.008045140653849,0.020436353981495) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.004620331339538,-0.237630590796471,0.087602362036705,-0.275945097208023,0.131781309843063,-0.065149486064911,0.054156765341759,0.159718811511993,0.056816138327122,0.231272280216217,-0.077789634466171,0.007082193158567,-0.019420243799686,0.022035347297788,-0.006941589526832,0.006015060003847) * MODEL3_texOff(vec2(1,0));
res += mat4(0.066626518964767,0.012916473671794,0.034434571862221,0.099793896079063,0.008238818496466,-0.063859157264233,0.026602767407894,-0.002985138911754,-0.025993578135967,0.067761458456516,-0.063971690833569,0.023284509778023,-0.062874145805836,0.026142233982682,0.055966559797525,0.018682824447751) * MODEL3_texOff(vec2(1,1));
res += mat4(0.025919031351805,-0.003716401057318,0.076829761266708,-0.098911993205547,0.015428265556693,-0.044481892138720,-0.017867326736450,-0.046610850840807,-0.042695078998804,0.092382729053497,-0.158063516020775,-0.051317527890205,0.038268003612757,-0.113338232040405,0.014681525528431,-0.010943027213216) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.082708433270454,-0.017814230173826,0.042273525148630,0.033090762794018,0.104328215122223,0.020211910828948,0.072865560650826,-0.140893012285233,0.036850184202194,0.032077938318253,0.114997312426567,-0.084079459309578,-0.077828243374825,0.020452030003071,0.005356727633625,-0.001899478724226) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.001389074488543,0.022480677813292,-0.137051165103912,-0.004972709342837,0.064057096838951,-0.037081882357597,-0.180526793003082,0.073407843708992,0.021980546414852,0.118615932762623,0.051161993294954,-0.000572977529373,0.043328382074833,-0.050469070672989,0.018854999914765,0.022669577971101) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.031344205141068,-0.002682216931134,-0.009844847023487,-0.076763354241848,-0.022989045828581,0.100385017693043,-0.009469293989241,0.021502971649170,-0.023658774793148,0.132063791155815,0.119291655719280,0.020804431289434,0.095520094037056,-0.061490494757891,-0.060097474604845,-0.104305878281593) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.156961068511009,-0.009186207316816,-0.053043585270643,-0.092617601156235,-0.023115739226341,0.322061300277710,0.040740307420492,0.010290649719536,-0.024532334879041,0.013953442685306,0.490084230899811,0.230127438902855,-0.202579289674759,0.239319831132889,-0.011427571065724,-0.274225562810898) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.030318858101964,-0.048319365829229,-0.022433137521148,-0.126982688903809,0.014761626720428,-0.025439010933042,-0.171368941664696,-0.000867527502123,-0.046619962900877,-0.015807775780559,0.382336467504501,-0.066094480454922,0.036935735493898,0.066270403563976,-0.171477034687996,0.026615403592587) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.106212742626667,0.024558715522289,0.015570756979287,-0.017787853255868,0.003353167558089,0.077984437346458,0.009050997905433,-0.013549273833632,0.059252604842186,0.025209058076143,-0.135124281048775,0.022911828011274,0.019553676247597,0.045970942825079,0.002458390779793,-0.006532895378768) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.145709469914436,-0.017226969823241,0.006047328002751,-0.046947114169598,0.070559881627560,0.008516671136022,0.058646462857723,-0.018938602879643,-0.034205440431833,-0.122395515441895,0.135426908731461,-0.101676285266876,0.030375761911273,0.000257332052570,0.091474644839764,0.037238188087940) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.062592051923275,-0.032663576304913,0.021639568731189,-0.056884191930294,0.050687026232481,-0.040865052491426,0.011910107918084,-0.056304309517145,0.011603899300098,0.089262165129185,0.163613379001617,0.022245211526752,0.070860140025616,-0.008818327449262,0.025545159354806,0.023837601765990) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.079870954155922,-0.054597381502390,-0.074029669165611,-0.027810094878078,0.046004910022020,0.003690033685416,0.014769274741411,-0.063602767884731,0.241292610764503,-0.048103488981724,0.215582579374313,0.071707673370838,0.000287239294266,0.051108103245497,0.011565042659640,0.017346911132336) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.085817582905293,-0.071961447596550,0.229135110974312,-0.084148019552231,0.063661828637123,0.038330554962158,-0.009085854515433,0.076804608106613,0.271701216697693,0.103290490806103,-0.023718178272247,0.100688762962818,-0.047799795866013,-0.004694870207459,0.120904073119164,0.077873647212982) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.045709628611803,-0.061146728694439,-0.086966700851917,-0.084739178419113,0.018979886546731,0.023885386064649,-0.015979964286089,-0.032606936991215,0.088808849453926,0.020134724676609,0.099909409880638,0.056600499898195,-0.060378249734640,0.034943912178278,0.042932540178299,0.017168980091810) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.039091765880585,0.015535055659711,-0.088787183165550,0.060907814651728,-0.040444608777761,-0.050835173577070,0.031389381736517,0.035035602748394,-0.008331221528351,-0.014574974775314,-0.043571211397648,-0.036360934376717,0.129885032773018,-0.044337235391140,0.156357064843178,-0.019513713195920) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.072970122098923,-0.090317480266094,0.108011357486248,-0.126361817121506,-0.368661791086197,-0.064529970288277,-0.033442810177803,-0.095879897475243,-0.177320897579193,-0.016360213980079,-0.029689058661461,0.007643133867532,0.163734629750252,0.128804728388786,0.166577324271202,-0.069815352559090) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.064077921211720,-0.130430907011032,0.073257498443127,-0.117210283875465,-0.036706227809191,-0.024306459352374,0.148806437849998,-0.003470892785117,0.103544928133488,-0.030715201050043,0.021356033161283,-0.025387268513441,0.067145220935345,0.015492158941925,0.036929730325937,0.022894419729710) * MODEL5_texOff(vec2(0,1));
res += mat4(0.065606847405434,-0.190768480300903,-0.028422096744180,0.006244285497814,0.058525152504444,-0.100209742784500,-0.032858535647392,-0.005264895968139,-0.002152183791623,0.081914402544498,-0.137269794940948,0.082016646862030,0.031544718891382,0.038879111409187,-0.055895712226629,0.033062744885683) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.004980850033462,-0.024435421451926,0.090141944587231,-0.072699360549450,0.037447128444910,0.178924441337585,0.106878548860550,-0.039380580186844,-0.067946746945381,-0.064890220761299,0.102308027446270,-0.118446469306946,0.011833541095257,-0.010285300202668,-0.134724333882332,0.002834385959432) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.038468521088362,0.057066112756729,0.037356398999691,-0.107901252806187,0.083399742841721,-0.006619545631111,-0.059777759015560,-0.033824555575848,0.012899823486805,0.027878867462277,-0.095421530306339,0.064607895910740,0.017220251262188,-0.022767137736082,-0.020636778324842,0.013588852249086) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.028086969628930,-0.040933869779110,0.083374463021755,0.039175432175398,0.034555938094854,0.022567899897695,0.048241317272186,0.006124156992882,-0.100510217249393,0.003886895952746,-0.018121197819710,0.047379381954670,0.054522220045328,-0.002541498513892,0.032048519700766,0.109390035271645) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.054936405271292,-0.008894667960703,-0.029001615941525,-0.036574561148882,0.010208334773779,-0.006232751999050,0.087206751108170,0.162309378385544,0.019630888476968,0.016781125217676,-0.113383352756500,-0.020638832822442,-0.093256555497646,-0.033290434628725,-0.031889010220766,-0.026001777499914) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.003834458766505,0.006535616237670,0.042092297226191,0.009950006380677,-0.004359758924693,0.024011190980673,0.053806517273188,-0.044802177697420,-0.021473964676261,-0.022388057783246,-0.015956368297338,-0.103304050862789,-0.037671763449907,-0.032240416854620,0.022509032860398,0.012461868114769) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.293807119131088,-0.088143259286880,-0.052231684327126,0.004711043089628,0.043523117899895,-0.002489075530320,-0.000412341440096,-0.062178023159504,0.037630531936884,-0.032641697674990,-0.015606289729476,-0.164555937051773,0.113565608859062,-0.108343772590160,0.079393945634365,0.018513090908527) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.540228486061096,0.266328096389771,0.100718654692173,0.357464641332626,0.153336733579636,-0.116123586893082,0.114497393369675,-0.163715347647667,0.288807362318039,0.258801162242889,-0.251632511615753,0.433271259069443,0.251573592424393,0.294936120510101,-0.213920548558235,0.297867000102997) * MODEL6_texOff(vec2(0,0));
res += mat4(0.026734638959169,-0.095145985484123,0.020938729867339,-0.035997811704874,0.118541605770588,0.033538848161697,-0.161639750003815,0.152213215827942,-0.009704542346299,0.063443414866924,-0.004367174115032,0.029890656471252,0.090165272355080,-0.057922590523958,0.188046112656593,-0.073193594813347) * MODEL6_texOff(vec2(0,1));
res += mat4(0.059351142495871,0.012864736840129,0.047584880143404,-0.064770758152008,0.053153138607740,-0.036137867718935,-0.044634845107794,0.021200031042099,0.025126256048679,0.047468204051256,-0.016325909644365,-0.005114960018545,-0.088809967041016,-0.088979676365852,0.014220865443349,-0.058937720954418) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.168541818857193,-0.190626904368401,-0.022013215348125,0.060316987335682,0.106045521795750,-0.045000523328781,0.018511118367314,0.068931668996811,-0.050109952688217,-0.008766549639404,-0.052021283656359,-0.088406488299370,-0.135121315717697,-0.110155068337917,-0.051562707871199,0.045144505798817) * MODEL6_texOff(vec2(1,0));
res += mat4(0.067362830042839,-0.011552293784916,-0.023698162287474,0.039300609380007,0.115050934255123,0.067300170660019,0.023412566632032,-0.036130864173174,0.001418731291778,0.011918982490897,0.007540401071310,0.041914507746696,-0.054480951279402,0.166513830423355,0.080292440950871,0.039003591984510) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.011680041439831,0.356967240571976,0.034787617623806,0.000177258771146) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_HQ_3x_Photo] mapping 8_3

vec4 hook()
{
vec4 res = vec4(-0.273377865552902,-0.240250706672668,-0.239735215902328,-0.261268466711044);
res += mat4(-0.057819195091724,-0.026001747697592,0.014664116315544,-0.031213495880365,-0.069531612098217,0.003397327614948,-0.098951168358326,0.037187252193689,0.030322561040521,0.049345251172781,-0.054046928882599,-0.055896122008562,-0.036067303270102,-0.287900745868683,-0.029905831441283,0.095157869160175) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.111333250999451,-0.039070475846529,-0.041400372982025,-0.048071630299091,0.013539629988372,-0.018395116552711,-0.053384985774755,-0.177276775240898,-0.197499915957451,-0.046248782426119,-0.010776258073747,0.093925058841705,-0.086882971227169,-0.110475644469261,-0.001217555487528,-0.087494209408760) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.020419150590897,-0.170714795589447,0.009836138226092,-0.026396878063679,-0.125946253538132,-0.080410242080688,0.030904648825526,-0.093878567218781,0.070086322724819,0.015133155509830,0.058918897062540,-0.022770879790187,-0.059937052428722,-0.057458393275738,-0.190300837159157,-0.078435130417347) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.015758682042360,-0.170250609517097,0.049374070018530,-0.007502699270844,-0.003664707997814,-0.005359875503927,-0.050907403230667,-0.206728070974350,0.013761957176030,0.058087851852179,0.122228235006332,-0.126197233796120,0.055819660425186,-0.354258596897125,0.002018342958763,-0.033136401325464) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.257701009511948,0.057093888521194,-0.297807216644287,-0.168198108673096,-0.069177590310574,0.017941925674677,-0.079093232750893,-0.123069547116756,-0.181983366608620,-0.065972484648228,0.290279448032379,-0.230986282229424,0.159542083740234,0.058508381247520,-0.119017653167248,-0.036636061966419) * MODEL1_texOff(vec2(0,0));
res += mat4(0.193614542484283,-0.032059229910374,0.072254464030266,0.118753194808960,-0.013171002268791,-0.047793451696634,-0.023328227922320,-0.020005468279123,0.148264557123184,0.049275007098913,-0.050801850855350,0.082710832357407,-0.023655427619815,-0.054970379918814,-0.097452871501446,-0.021073507145047) * MODEL1_texOff(vec2(0,1));
res += mat4(0.013884762302041,0.115439429879189,0.020271928980947,-0.002885391470045,0.017739303410053,-0.022515861317515,-0.093200370669365,-0.204990282654762,-0.017585769295692,0.010290130041540,-0.080624029040337,0.024168442934752,0.068645425140858,-0.029675537720323,0.062495790421963,-0.057784445583820) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.028133597224951,0.057112608104944,0.273353934288025,-0.105422064661980,-0.020710531622171,-0.039285756647587,0.064898975193501,-0.015705149620771,0.003912179730833,-0.071014061570168,-0.009865312837064,-0.006340153049678,-0.028110906481743,0.005569941364229,-0.126912981271744,-0.025213325396180) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.036209415644407,-0.049868326634169,0.115442559123039,-0.056006919592619,-0.019648507237434,-0.003534908406436,0.003288134466857,0.043103981763124,0.036676406860352,0.025988835841417,-0.031344797462225,0.017521807923913,-0.027115818113089,-0.022392388433218,0.002002300228924,0.013774153776467) * MODEL1_texOff(vec2(1,1));
res += mat4(0.059470247477293,-0.102604143321514,0.011083456687629,0.086517192423344,-0.011524322442710,0.125789672136307,-0.013420450501144,-0.068833395838737,-0.108469121158123,-0.062331724911928,0.093687370419502,-0.020990882068872,0.011084287427366,-0.037924200296402,-0.046122778207064,-0.008134386502206) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.011753514409065,0.118865504860878,0.041044123470783,0.030521288514137,0.046584554016590,0.177063882350922,0.083533525466919,0.071036696434021,-0.104044757783413,-0.005690102465451,-0.041944719851017,0.135339573025703,-0.045519974082708,-0.051679827272892,-0.019667308777571,0.051838591694832) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.018389800563455,0.009215896017849,0.081175297498703,0.051880825310946,-0.122707843780518,-0.097644701600075,0.034267682582140,0.091409891843796,0.029091898351908,-0.024044588208199,-0.051037777215242,0.017380641773343,0.037453591823578,0.118422083556652,0.009892133064568,0.009861735627055) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.127513676881790,-0.134200289845467,-0.006878337822855,0.115874782204628,0.059573873877525,0.035115521401167,-0.073206268250942,0.130466118454933,0.084800533950329,-0.043737746775150,-0.046644151210785,0.011175974272192,0.020543178543448,-0.102126985788345,-0.065520189702511,-0.037620827555656) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.133910387754440,0.222910210490227,-0.142859920859337,-0.112696647644043,-0.070123746991158,0.057395953685045,0.156177297234535,0.169276103377342,0.107129782438278,-0.028218533843756,-0.030576560646296,-0.031344532966614,-0.611947596073151,-0.130932107567787,-0.142599970102310,-0.292405962944031) * MODEL2_texOff(vec2(0,0));
res += mat4(0.038939926773310,0.075296416878700,0.228327751159668,0.131965309381485,0.030858384445310,0.045767795294523,0.062112919986248,-0.008453142829239,0.002708759391680,-0.011729528196156,-0.034745406359434,0.111060380935669,-0.129002764821053,0.104684144258499,0.090053573250771,-0.073518447577953) * MODEL2_texOff(vec2(0,1));
res += mat4(0.030179284512997,0.020861314609647,0.056857910007238,-0.076865777373314,-0.046087913215160,-0.027666306123137,0.082476921379566,0.040836539119482,-0.025715466588736,-0.053367558866739,0.104141898453236,-0.031309939920902,-0.010560618713498,-0.033296279609203,0.005037399474531,0.055533487349749) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.012422386556864,0.031745661050081,0.166335657238960,0.191364005208015,-0.087942503392696,-0.040926713496447,0.036520827561617,0.096082314848900,-0.024982791393995,0.046453665941954,-0.068621911108494,0.102737285196781,-0.028941303491592,0.038316953927279,-0.079547770321369,-0.210196390748024) * MODEL2_texOff(vec2(1,0));
res += mat4(0.082794651389122,0.027564568445086,0.004578228108585,0.002988968277350,0.025852857157588,0.006400926504284,-0.025872653350234,0.051688712090254,-0.070077538490295,-0.032009497284889,-0.026198977604508,-0.025940697640181,-0.019364872947335,0.017443450167775,-0.052164584398270,0.041676133871078) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.010281085968018,-0.210438489913940,0.125317081809044,0.060717649757862,0.068613722920418,-0.145390167832375,-0.051725920289755,0.015976626425982,-0.103966623544693,0.018414761871099,-0.036081649363041,0.032647252082825,0.008853486739099,-0.012855431996286,-0.081179834902287,0.051466803997755) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.013876188546419,-0.121056318283081,-0.022192791104317,-0.029800929129124,0.028972970321774,0.069007441401482,0.077357053756714,0.023448359221220,-0.017594411969185,-0.204700469970703,-0.076561756432056,0.045228477567434,-0.080568544566631,-0.031204938888550,0.147625103592873,-0.044386468827724) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.137958824634552,0.112454064190388,0.023516159504652,0.068613998591900,-0.088028393685818,-0.040998946875334,0.017526656389236,-0.035091303288937,-0.054744511842728,0.015795918181539,-0.002062241779640,-0.111429847776890,-0.031165003776550,0.025798160582781,0.010271744802594,-0.000686251034494) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.013271672651172,-0.016088891774416,0.023937156423926,0.015335705131292,0.112780421972275,-0.153167754411697,0.231564909219742,0.010843095369637,0.010152002796531,-0.185374781489372,-0.054372753947973,0.080388866364956,-0.044533863663673,-0.023813400417566,0.021409463137388,0.064849741756916) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.153069689869881,-0.141794383525848,-0.069394461810589,0.007937184534967,-0.132417589426041,-0.032973609864712,-0.191372081637383,-0.020994590595365,0.278265118598938,-0.151379227638245,-0.017389502376318,-0.155132368206978,0.066382631659508,-0.047775615006685,0.198622658848763,-0.192696198821068) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.159033358097076,0.177349343895912,-0.067315272986889,-0.143804028630257,-0.029321730136871,0.002805253723636,0.018813181668520,-0.040752060711384,0.074831761419773,0.063260287046432,-0.053458973765373,0.037107184529305,-0.006224082317203,0.055112767964602,-0.022811038419604,0.017722303047776) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.015636067837477,0.112423107028008,0.102566838264465,0.075319156050682,0.012825208716094,0.043435838073492,-0.049257729202509,0.185272917151451,0.010519012808800,-0.038590259850025,-0.058593071997166,0.012882662005723,0.018160261213779,-0.014626201242208,0.058403030037880,-0.028880968689919) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.049964275211096,-0.041744932532310,0.071159534156322,0.003963678143919,0.038643579930067,0.035257872194052,0.086305022239685,-0.058077502995729,-0.021390737965703,0.021012859418988,0.031061127781868,-0.068778283894062,0.037858925759792,0.034800298511982,-0.021283453330398,-0.033061392605305) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.089335829019547,0.071845829486847,0.071665354073048,0.092715024948120,0.002547007985413,0.021845268085599,0.021843099966645,0.018856894224882,-0.023086536675692,-0.019494319334626,-0.073793277144432,-0.005253994837403,-0.006481070071459,0.029065793380141,0.026896186172962,0.030279425904155) * MODEL3_texOff(vec2(1,1));
res += mat4(0.019018834456801,-0.179939791560173,-0.036375451833010,0.057758655399084,0.010373939760029,-0.003466117195785,-0.111860863864422,-0.094844140112400,-0.095125034451485,0.074580267071724,-0.029675703495741,-0.014199743978679,0.044629272073507,0.089805014431477,-0.097328968346119,-0.038448270410299) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.000574805424549,0.045630320906639,0.081204995512962,-0.082190357148647,0.030243415385485,0.284297555685043,-0.091884732246399,-0.127846017479897,0.063963279128075,-0.034005712717772,-0.058083713054657,-0.017022078856826,0.241733059287071,-0.070300623774529,0.089084416627884,-0.071933351457119) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.054556712508202,-0.010048498399556,0.013495756313205,-0.014706834219396,-0.190541654825211,-0.150680124759674,-0.012273063883185,-0.013964130543172,-0.023713719099760,-0.062597744166851,-0.096073433756828,-0.028184693306684,-0.023717144504189,0.042071629315615,-0.076568238437176,-0.024406498298049) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.003132057609037,-0.009870156645775,-0.006208091508597,-0.168717637658119,0.078503809869289,0.003946404904127,0.012861033901572,0.143124908208847,-0.136025965213776,0.208373054862022,0.137585803866386,-0.080523207783699,0.043539859354496,0.062999323010445,0.036292940378189,0.102986365556717) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.175713256001472,-0.141938805580139,0.034228168427944,0.183655589818954,-0.119265623390675,0.150101765990257,-0.080702401697636,0.172116249799728,0.313299328088760,-0.173673123121262,-0.031728003174067,-0.078783959150314,0.168593987822533,-0.093549460172653,-0.328045040369034,0.305510073900223) * MODEL4_texOff(vec2(0,0));
res += mat4(0.064881458878517,0.036713309586048,-0.071778327226639,0.026511747390032,-0.132910147309303,-0.089887432754040,0.123545207083225,-0.091748729348183,0.246990829706192,0.027667893096805,-0.045654665678740,0.040317989885807,-0.004168536979705,-0.006102052051574,-0.021814681589603,0.016628166660666) * MODEL4_texOff(vec2(0,1));
res += mat4(0.070620179176331,-0.073218278586864,0.082345165312290,0.149590060114861,0.054660029709339,0.012386237271130,0.005630138330162,-0.134706124663353,-0.056125435978174,0.147023454308510,-0.066368512809277,-0.066296443343163,-0.048902966082096,0.021574601531029,-0.016914060339332,0.116646267473698) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.030616130679846,0.069857135415077,-0.139546826481819,-0.011907442472875,0.056789319962263,0.071571581065655,-0.013115998357534,0.007309486623853,0.161046206951141,-0.134332761168480,-0.036290951073170,-0.109702728688717,0.102989830076694,-0.055210735648870,-0.162470117211342,-0.221074745059013) * MODEL4_texOff(vec2(1,0));
res += mat4(0.006406053435057,0.010603900998831,-0.005802317522466,0.004896410275251,-0.054058495908976,-0.024698600172997,0.020253684371710,-0.038400400429964,0.121265284717083,0.075632199645042,-0.014857993461192,0.010738528333604,-0.074781484901905,0.021930938586593,0.024108614772558,0.005740246269852) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.026605410501361,0.100129954516888,0.049801614135504,0.001239336095750,-0.016359256580472,-0.044747073203325,-0.002046995563433,-0.007452572230250,0.119960911571980,-0.064383141696453,-0.069439128041267,0.164565950632095,0.006884322967380,-0.148575082421303,0.073942728340626,0.036639813333750) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.014676545746624,-0.170861735939980,-0.114337988197803,0.080737456679344,0.050745934247971,0.071587488055229,0.022218344733119,-0.033507432788610,0.097780093550682,0.150594815611839,0.204438880085945,-0.104500427842140,0.092892356216908,-0.014960799366236,0.207438021898270,0.154174298048019) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.012994368560612,0.185638681054115,0.051401395350695,-0.188747763633728,-0.017682641744614,0.040818825364113,-0.058567631989717,-0.020425956696272,-0.000288796407403,-0.002760477596894,0.139607548713684,0.089183278381824,0.012155785225332,0.055574748665094,0.001701191882603,0.009350164793432) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.022321550175548,0.223434209823608,0.007280643563718,-0.041459076106548,0.058521963655949,0.095836050808430,-0.033710964024067,0.009963680058718,0.043612338602543,0.119753837585449,-0.036664292216301,-0.039413984864950,0.105319902300835,-0.327630639076233,0.455653339624405,0.305641800165176) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.018462451174855,-0.431228488683701,0.119853682816029,0.064983025193214,0.092857442796230,-0.077442429959774,-0.047775629907846,-0.020008986815810,-0.036002539098263,-0.158588647842407,-0.017132109031081,-0.015992654487491,0.046798814088106,-0.159904122352600,-0.198398336768150,0.111063405871391) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.019153691828251,0.151969462633133,-0.295210570096970,-0.017803123220801,0.074570536613464,0.070192582905293,-0.013163362629712,-0.030860215425491,0.019385857507586,0.102316170930862,-0.027150331065059,-0.001623301533982,0.022691844031215,0.004336243029684,0.011103502474725,-0.019399799406528) * MODEL5_texOff(vec2(0,1));
res += mat4(0.050302997231483,0.144579976797104,-0.097782552242279,0.182777181267738,-0.031850337982178,0.093476198613644,0.109735019505024,-0.022747332230210,-0.033650483936071,0.093030571937561,-0.084544986486435,-0.054656226187944,-0.148541659116745,0.073861517012119,-0.075345538556576,-0.099902860820293) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.053781911730766,-0.071262128651142,0.139942288398743,-0.151923835277557,0.006900736596435,-0.073283158242702,-0.064501695334911,0.038673348724842,-0.034103583544493,-0.043783400207758,0.053320057690144,-0.159556269645691,-0.161942958831787,-0.100011937320232,0.108691625297070,-0.124765127897263) * MODEL5_texOff(vec2(1,0));
res += mat4(0.030473947525024,0.046975187957287,-0.051104538142681,-0.020227363333106,-0.023251879960299,0.030880350619555,-0.024907102808356,-0.031599089503288,0.023359455168247,0.022040728479624,-0.057191420346498,0.124067343771458,-0.012892267666757,-0.007216661702842,0.005260948557407,0.036866772919893) * MODEL5_texOff(vec2(1,1));
res += mat4(0.081227213144302,0.014843927696347,0.041517723351717,0.045661985874176,-0.039563424885273,0.014685965143144,0.038909509778023,0.011524344794452,0.034855939447880,0.102671854197979,-0.023029986768961,0.033493988215923,0.064845852553844,0.101438127458096,-0.029834738001227,0.014948491007090) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.087730318307877,-0.030438287183642,0.096951089799404,0.077375493943691,0.098081804811954,-0.038345176726580,-0.054540719836950,0.104787729680538,0.065937228500843,0.047044660896063,0.009170864708722,-0.048004936426878,-0.138593986630440,-0.196856975555420,0.047102801501751,0.045397121459246) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.044704865664244,-0.003807217348367,-0.045814119279385,-0.050094220787287,0.133283406496048,0.198583543300629,0.101033560931683,-0.006868131458759,0.009824066422880,0.001489945221692,-0.127402201294899,-0.053617805242538,0.066168792545795,0.032679695636034,0.083952091634274,-0.041468132287264) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.032459691166878,0.132840365171432,0.163032025098801,-0.038929358124733,-0.041182760149240,0.027370406314731,-0.131268113851547,0.029302233830094,0.080438032746315,0.119377143681049,0.006010437384248,-0.016329990699887,0.077914595603943,0.080939471721649,-0.048822775483131,0.112419061362743) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.024441560730338,-0.020519603043795,-0.188821509480476,0.102208629250526,0.257875055074692,-0.122341319918633,0.069652624428272,0.254984468221664,0.093629129230976,0.148323327302933,-0.046310201287270,0.006409983150661,-0.366763889789581,-0.222837299108505,0.315003663301468,-0.345876783132553) * MODEL6_texOff(vec2(0,0));
res += mat4(0.041387420147657,0.045028179883957,0.072062768042088,-0.030720248818398,0.039734568446875,0.207946673035622,-0.094070836901665,0.031847495585680,-0.190929815173149,-0.028918985277414,0.030601730570197,-0.106493659317493,0.179540917277336,0.077287822961807,-0.101719915866852,0.062374062836170) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.006023380439728,-0.074104733765125,-0.060766693204641,0.066799275577068,-0.059979021549225,-0.069804541766644,0.001198338926770,0.112624756991863,-0.046348549425602,0.031041493639350,-0.042166244238615,-0.088233746588230,0.042614612728357,-0.004225565120578,0.072892412543297,-0.071980535984039) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.057257756590843,-0.000906861212570,0.102252915501595,-0.043766207993031,-0.021754473447800,0.076656669378281,0.121223896741867,-0.090571023523808,-0.010419575497508,0.012470724992454,-0.030575167387724,-0.014968884177506,-0.037815652787685,-0.021801471710205,-0.106968022882938,0.082405298948288) * MODEL6_texOff(vec2(1,0));
res += mat4(0.000936464173719,0.007897116243839,0.009957291185856,0.013775186613202,0.029814297333360,0.064485780894756,0.046258781105280,0.047840919345617,0.000177694426384,-0.044512368738651,-0.048943031579256,0.008428110741079,0.018347781151533,0.036998134106398,-0.104379303753376,0.055343631654978) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.002043152460828,-0.045836612582207,0.013494734652340,0.001988961827010) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_HQ_3x_Photo] mapping 8_4

vec4 hook()
{
vec4 res = vec4(-0.199048802256584,-0.399364680051804,-0.132461681962013,-0.208766400814056);
res += mat4(-0.066869504749775,-0.069533407688141,0.026962352916598,0.032287966459990,0.007884633727372,-0.028358057141304,0.094542160630226,-0.083677247166634,-0.014273938722908,0.050970859825611,0.070708163082600,-0.062616042792797,0.055534537881613,-0.005858465097845,0.044600583612919,-0.018600489944220) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.051758665591478,-0.111637890338898,0.027834167703986,0.056261222809553,0.037182681262493,0.064395584166050,-0.072696320712566,-0.012998635880649,0.130733117461205,-0.084062948822975,0.064281165599823,-0.084068827331066,-0.000246589159360,-0.153582006692886,-0.124451920390129,-0.152512237429619) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.045685067772865,-0.088099636137486,0.016423655673862,-0.070119701325893,0.116257496178150,-0.105434611439705,0.007413965649903,0.025930983945727,-0.049126546829939,0.048423506319523,-0.040117319673300,-0.038923915475607,-0.196773678064346,-0.005786382127553,0.047330975532532,-0.079538814723492) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.027699159458280,-0.037909843027592,0.159988820552826,0.047806221991777,-0.034263070672750,0.021222548559308,0.000021314779588,0.111191853880882,0.081723406910896,0.318449229001999,0.015920514240861,-0.127941086888313,0.150340005755424,-0.236668884754181,0.162563771009445,0.017444320023060) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.090791381895542,-0.431728214025497,0.245380446314812,-0.032703589648008,0.026127578690648,-0.030468145385385,-0.048194941133261,-0.303102344274521,-0.047188181430101,-0.135550335049629,0.109701715409756,0.009800336323678,-0.080831706523895,-0.517408251762390,-0.459158569574356,-0.231472030282021) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.303080797195435,-0.068649314343929,0.113804161548615,-0.118975646793842,-0.161294564604759,-0.055422745645046,-0.072221741080284,0.078388050198555,-0.077831044793129,-0.021972464397550,-0.039073273539543,0.024104172363877,-0.228040128946304,0.040901523083448,0.018759248778224,-0.075008377432823) * MODEL1_texOff(vec2(0,1));
res += mat4(0.034948106855154,-0.023206487298012,-0.032137941569090,0.161880224943161,0.025271682068706,-0.001564730890095,0.040487695485353,0.020249379798770,-0.057242006063461,0.087716355919838,-0.130388021469116,-0.106576234102249,0.081372618675232,-0.028107989579439,0.098711311817169,0.017909606918693) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.058403063565493,0.079502247273922,0.110540553927422,0.011532077565789,-0.000115578011901,-0.024209544062614,0.042096622288227,-0.054359119385481,0.037126868963242,-0.078706003725529,0.012793695554137,0.044458091259003,-0.082913652062416,-0.002363039879128,-0.106205254793167,-0.104277901351452) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.011529833078384,-0.055427365005016,0.043078564107418,0.045350253582001,-0.008118869736791,0.016361342743039,0.016542937606573,-0.001535494579002,-0.023493325337768,0.014672002755105,-0.000132034358103,0.018281472846866,0.095108039677143,0.026685828343034,0.007052464410663,-0.035322368144989) * MODEL1_texOff(vec2(1,1));
res += mat4(0.036304526031017,-0.024304527789354,-0.041597634553909,-0.023673783987761,-0.039676561951637,-0.006514935288578,-0.112230040132999,-0.085981041193008,0.023954754695296,0.010202211327851,0.030305640771985,0.034286305308342,-0.046770446002483,0.005064117722213,-0.044775299727917,-0.035734865814447) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.112919144332409,0.092872500419617,0.040487527847290,0.211641162633896,-0.013724572025239,0.122785620391369,-0.016672722995281,-0.002087438246235,0.112532034516335,-0.065879195928574,0.059234078973532,0.019749080762267,-0.012724109925330,-0.042118344455957,-0.082501560449600,0.018735192716122) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.130229607224464,0.019256103783846,-0.006158018950373,-0.149684280157089,-0.127331867814064,-0.079784259200096,0.047031968832016,-0.085151977837086,-0.000947310705669,0.028688210994005,0.047669731080532,-0.029316104948521,-0.021178131923079,0.058021392673254,0.018926093354821,-0.042740341275930) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.129074171185493,0.001391799072735,0.093152515590191,0.142273470759392,0.118948452174664,-0.058005113154650,0.020018506795168,-0.022567449137568,0.102526418864727,-0.005339267197996,-0.071903973817825,0.027108227834105,-0.024306569248438,0.156422719359398,0.011565610766411,0.030764063820243) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.094527721405029,0.331621497869492,0.133274897933006,-0.065691851079464,-0.165619477629662,0.118970632553101,-0.083241693675518,0.143633246421814,-0.159206449985504,-0.104385599493980,0.006816533859819,-0.024974411353469,-0.015805695205927,-0.338205754756927,-0.526170134544373,-0.381151467561722) * MODEL2_texOff(vec2(0,0));
res += mat4(0.093281738460064,0.090765796601772,-0.119276694953442,0.100387610495090,0.032369788736105,0.039370138198137,-0.016039177775383,-0.022288573905826,-0.208794564008713,0.006994816474617,0.062687277793884,-0.017752455547452,0.133519336581230,0.177766606211662,-0.051381416618824,-0.015334409661591) * MODEL2_texOff(vec2(0,1));
res += mat4(0.036843907088041,-0.158025339245796,0.032986547797918,0.086998790502548,-0.053098250180483,-0.087093375623226,0.078293628990650,-0.015092927031219,0.054020341485739,-0.096206113696098,0.046457424759865,-0.129676297307014,-0.027057005092502,0.108034633100033,0.027753129601479,-0.007820820435882) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.045117013156414,0.118143700063229,0.127072766423225,0.005992284510285,-0.097749821841717,-0.063647069036961,0.031334806233644,-0.115860536694527,-0.030725935474038,0.044744290411472,-0.084658384323120,0.006639978848398,-0.044483050704002,-0.103133812546730,-0.170463979244232,-0.032721951603889) * MODEL2_texOff(vec2(1,0));
res += mat4(0.012693355791271,-0.035024087876081,-0.050149518996477,0.064373746514320,-0.022049333900213,-0.016927070915699,0.006700444966555,-0.031063191592693,0.124759785830975,-0.055768825113773,0.009151061065495,-0.041133012622595,-0.009899669326842,0.071346774697304,-0.052279997617006,-0.044690728187561) * MODEL2_texOff(vec2(1,1));
res += mat4(0.069918930530548,0.034753240644932,0.061842661350965,0.096811980009079,0.006676666904241,-0.003401933936402,0.005486430600286,0.013844538480043,-0.037964738905430,-0.081483945250511,-0.046988740563393,-0.040032301098108,0.047344647347927,-0.022494565695524,0.007682129275054,0.164494112133980) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.137829393148422,0.075117789208889,-0.054780799895525,-0.099636688828468,0.012950214557350,0.049582339823246,-0.201376423239708,0.083930119872093,-0.006798034068197,-0.111391834914684,-0.074418216943741,0.002378677483648,-0.102895759046078,-0.000176374218427,0.008352927863598,0.007095911074430) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.063639625906944,-0.054330930113792,-0.070303924381733,-0.013569291681051,-0.029446853324771,-0.081441752612591,-0.029152145609260,0.048808656632900,-0.004767913371325,-0.043556943535805,-0.011286753229797,0.004814066458493,-0.139467671513557,0.003842998761684,-0.036490280181170,0.143484547734261) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.040923323482275,0.001193085103296,0.020195972174406,-0.018746912479401,-0.071981079876423,0.090002208948135,-0.138945326209068,-0.099486470222473,0.018711064010859,-0.232249125838280,-0.066243179142475,0.033000800758600,-0.040293484926224,-0.027662081643939,-0.089026585221291,0.265506297349930) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.049523483961821,0.013528201729059,0.076615266501904,0.016847983002663,0.156553208827972,-0.138019680976868,-0.033240888267756,0.013306522741914,-0.028147859498858,-0.091947004199028,0.032733280211687,-0.076847940683365,0.029024949297309,-0.004674399271607,0.149087905883789,-0.223611116409302) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.133318871259689,-0.124611124396324,-0.298927485942841,-0.151638969779015,-0.110811486840248,0.003898734459653,0.017888886854053,0.111411593854427,-0.024495953693986,0.013866408728063,-0.075306691229343,0.053673494607210,-0.020866824313998,0.072500586509705,0.021565675735474,0.013162354938686) * MODEL3_texOff(vec2(0,1));
res += mat4(0.005011610686779,0.165075436234474,0.055235169827938,0.106424860656261,-0.002450821688399,0.111083179712296,-0.173814162611961,0.250968486070633,0.037246946245432,-0.053966470062733,-0.087241291999817,-0.027258867397904,0.031699381768703,0.052647311240435,-0.056691810488701,-0.013055553659797) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.107646919786930,0.046980917453766,0.061217535287142,-0.005018618889153,0.105624973773956,-0.035405538976192,0.033922839909792,0.025120258331299,-0.061842136085033,-0.040044777095318,-0.025603679940104,0.053144846111536,0.032882399857044,0.006520486902446,-0.029500082135201,0.063606865704060) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.150378450751305,0.021185552701354,0.045404385775328,0.220760583877563,-0.045835006982088,0.056043613702059,0.034971520304680,0.002377109834924,-0.073720335960388,-0.013823727145791,-0.064763300120831,0.002209843834862,-0.007871771231294,0.024142839014530,0.025767853483558,0.010546927340329) * MODEL3_texOff(vec2(1,1));
res += mat4(0.020685218274593,-0.037918776273727,0.022135201841593,0.036863643676043,-0.020285444334149,0.113118767738342,0.246309727430344,-0.163175255060196,-0.071224801242352,0.005561961326748,0.002059462945908,0.020040458068252,0.064285576343536,0.048757087439299,0.077080078423023,0.058790788054466) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.061142619699240,-0.011338877491653,-0.100348696112633,-0.038812305778265,0.035793475806713,0.185641318559647,-0.230092287063599,0.021636985242367,0.128774762153625,0.029856994748116,0.143767908215523,0.083702407777309,-0.203569069504738,0.094981797039509,0.025701738893986,0.042878616601229) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.195208385586739,-0.060410156846046,0.003566426457837,0.051228903234005,-0.067897617816925,-0.146515503525734,0.168299511075020,-0.182391390204430,-0.012227933853865,-0.045510750263929,-0.009324339218438,-0.091571904718876,0.212689310312271,-0.025329120457172,-0.033997189253569,0.138789623975754) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.043576873838902,-0.170964166522026,-0.144130080938339,-0.159839585423470,-0.066851660609245,0.278969377279282,0.255441844463348,-0.059113204479218,0.075535431504250,-0.056400354951620,-0.004063264932483,-0.040628559887409,0.055602535605431,-0.019379485398531,0.334582537412643,0.050472341477871) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.062707930803299,-0.112428188323975,0.028682306408882,0.417694032192230,0.089572921395302,0.193328320980072,-0.102645583450794,-0.084690034389496,0.203281566500664,-0.156312689185143,0.085999503731728,-0.060990307480097,-0.252497464418411,-0.083014182746410,0.208610102534294,0.243564337491989) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.107473984360695,0.014169008471072,-0.078281022608280,-0.064037367701530,0.084733456373215,-0.066380888223648,0.022048806771636,0.103883661329746,0.265297889709473,-0.012422931380570,-0.004649886395782,-0.121996223926544,0.195715650916100,0.014433049596846,0.080700628459454,-0.042764231562614) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.038505204021931,0.050443463027477,-0.066076219081879,0.001544066937640,-0.024367447942495,0.080925747752190,0.141530781984329,0.055244054645300,-0.031427491456270,0.038961227983236,-0.064767591655254,0.043040435761213,0.039982631802559,0.082194648683071,0.185461729764938,-0.045140095055103) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.053633186966181,-0.035324905067682,-0.118499390780926,0.130068093538284,-0.001029093400575,0.072413422167301,-0.084505602717400,-0.011677874252200,0.122609466314316,-0.006388179026544,0.185519382357597,0.027842322364450,-0.182426810264587,0.009658791124821,-0.007245880085975,0.000559633830562) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.033326491713524,0.026474177837372,0.063726238906384,-0.075440786778927,0.054922807961702,-0.029648520052433,0.052688512951136,-0.060395311564207,0.039891611784697,0.054735857993364,-0.026541510596871,0.065294235944748,0.200180575251579,0.009709240868688,0.023486528545618,0.025314832106233) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.113191887736320,0.035554211586714,0.071861639618874,0.062170166522264,0.045552968978882,-0.031327005475760,0.034437265247107,-0.059979487210512,0.115914784371853,0.010138264857233,0.213147789239883,0.180018573999405,0.015187906101346,-0.058902554214001,0.054520323872566,-0.033080305904150) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.143620714545250,-0.075743526220322,0.162697464227676,-0.070844508707523,-0.031103719025850,0.007964094169438,-0.036014027893543,-0.030671278014779,-0.102446950972080,0.164760813117027,-0.094746395945549,0.013370633125305,0.187450051307678,0.077963270246983,-0.017791729420424,0.133735746145248) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.248536869883537,0.081040874123573,-0.081196293234825,-0.147863447666168,0.028276160359383,0.012213558889925,-0.022364458069205,0.001450121519156,0.266000330448151,-0.050564616918564,0.089257813990116,-0.030470289289951,0.060072027146816,0.038837753236294,0.031165903434157,0.126923754811287) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.006203810218722,0.099078096449375,-0.181288883090019,-0.119169950485229,0.052969902753830,0.031181951984763,-0.043737765401602,-0.058815632015467,-0.058334916830063,0.081889085471630,-0.055469010025263,0.018921181559563,0.046763144433498,-0.316581040620804,-0.005789925809950,0.063454076647758) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.156126096844673,-0.094838306307793,0.267496556043625,0.014431405812502,-0.064046800136566,0.014684577472508,0.055004905909300,0.369308233261108,0.039638645946980,0.047436021268368,-0.003806092077866,-0.081823267042637,0.044543970376253,0.008376890793443,0.080607220530510,-0.009742078371346) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.093727000057697,0.033935856074095,-0.118720971047878,-0.161980405449867,0.199109449982643,0.069516479969025,-0.058182075619698,-0.035295683890581,0.079217560589314,0.042156826704741,-0.060592178255320,0.003931152634323,-0.068624116480350,0.003367263590917,0.023181831464171,-0.127564579248428) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.017014965415001,0.199633896350861,-0.086234681308270,-0.121231667697430,-0.019163688644767,0.106373101472855,0.057912759482861,-0.027138179168105,-0.133227780461311,0.136997014284134,-0.245361715555191,-0.035057369619608,-0.024449808523059,-0.112310558557510,-0.293792247772217,-0.032778289169073) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.177477598190308,-0.016126746311784,0.105151161551476,-0.078667476773262,-0.002141897100955,-0.082217432558537,0.047686368227005,0.156556993722916,0.251185506582260,-0.097698397934437,0.020621849223971,-0.183420941233635,0.031608387827873,-0.133030146360397,0.040214199572802,0.000598586979322) * MODEL5_texOff(vec2(1,0));
res += mat4(0.021944873034954,0.015921706333756,0.005879539530724,0.036319978535175,-0.013549914583564,0.039758302271366,-0.021845156326890,-0.088249936699867,-0.243795275688171,0.063920378684998,-0.015266776084900,0.088076636195183,-0.076833896338940,0.025220213457942,0.005972396582365,-0.001930790720508) * MODEL5_texOff(vec2(1,1));
res += mat4(0.038975782692432,0.076451160013676,-0.003502971958369,0.050102286040783,0.039092876017094,0.006354304030538,-0.046842362731695,-0.072184361517429,-0.014786481857300,-0.034294139593840,-0.030945129692554,-0.026727262884378,0.035566236823797,0.043684985488653,-0.069654427468777,-0.010112380608916) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.067157067358494,-0.016067389398813,0.002677965909243,0.097488887608051,0.015849331393838,0.051383748650551,0.039053495973349,-0.007276399061084,-0.147994771599770,0.043411541730165,-0.101819634437561,-0.057329103350639,-0.085093252360821,-0.065005324780941,0.104048132896423,0.042373016476631) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.017408577725291,0.009649398736656,0.010191727429628,-0.044680610299110,-0.019576784223318,0.138117790222168,0.016644807532430,0.128884911537170,0.096644893288612,0.015465003438294,-0.010086533613503,-0.028368925675750,0.042344328016043,0.032294392585754,-0.104810647666454,0.014567064121366) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.027444412931800,0.100465968251228,0.027675576508045,-0.084466308355331,0.020211590453982,-0.111986450850964,-0.179568096995354,0.025653176009655,-0.007231620606035,0.095580838620663,0.015650926157832,0.015164386481047,0.064269900321960,0.095794185996056,0.057210192084312,0.009102668613195) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.119418963789940,0.003922568634152,0.056845597922802,-0.112824328243732,-0.103545852005482,-0.100408092141151,0.258973956108093,0.049342263489962,-0.119450204074383,0.261568963527679,-0.040072180330753,-0.110662035644054,-0.248107492923737,-0.247123047709465,0.078299947082996,-0.211805045604706) * MODEL6_texOff(vec2(0,0));
res += mat4(0.087850935757160,0.045939862728119,0.031315479427576,-0.007629101164639,-0.255473047494888,0.206638619303703,0.014745781198144,-0.079141676425934,0.306175857782364,-0.014641988091171,0.011800067499280,0.010704252868891,0.358721435070038,0.076331667602062,-0.153257265686989,-0.006540567614138) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.004855419043452,-0.023112215101719,-0.008462867699564,0.026370504871011,-0.015986664220691,-0.027730491012335,-0.129484713077545,-0.037864837795496,-0.011739091947675,-0.022514481097460,-0.069232210516930,-0.033305212855339,0.018010376021266,0.038116455078125,0.013427525758743,-0.057678665965796) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.027177462354302,-0.022105775773525,0.015250411815941,-0.159070655703545,-0.045723706483841,-0.039073865860701,0.068450108170509,-0.012666970491409,0.026182616129518,0.073271185159683,-0.017147656530142,-0.092086449265480,-0.047998242080212,-0.030777372419834,-0.061362139880657,0.067938067018986) * MODEL6_texOff(vec2(1,0));
res += mat4(0.031154718250036,0.014776415191591,0.014823166653514,-0.087145656347275,-0.066380441188812,0.130350202322006,0.127685725688934,0.051390625536442,-0.037880621850491,-0.069971121847630,-0.020337393507361,0.011722802184522,0.097062207758427,-0.010362735949457,-0.086476795375347,0.044383056461811) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.013098207302392,0.005714127328247,0.002813741797581,0.004974896088243) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_HQ_3x_Photo] mapping 8_5

vec4 hook()
{
vec4 res = vec4(-0.257607996463776,-0.254686653614044,-0.207951948046684,-0.248715534806252);
res += mat4(-0.013629554770887,-0.069024801254272,-0.064257659018040,-0.029083419591188,0.043892972171307,0.017670368775725,-0.065661065280437,-0.053769901394844,-0.028559485450387,-0.098928540945053,-0.068135574460030,-0.089568294584751,0.001585331861861,0.045675870031118,0.051216956228018,0.074448540806770) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.013186571188271,-0.043628204613924,-0.069226458668709,0.026256350800395,-0.026627916842699,0.179682523012161,0.004144781734794,-0.003463685512543,0.060162927955389,0.005148360040039,0.066521517932415,0.026942526921630,0.039100009948015,0.059922281652689,0.043741405010223,-0.038340132683516) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.002031648997217,-0.030230108648539,0.058970648795366,-0.041669659316540,-0.072863891720772,0.239792898297310,-0.002900059567764,-0.010511773638427,-0.032953750342131,-0.040702357888222,0.030406987294555,0.033414658159018,0.007124994415790,0.024400979280472,-0.058379136025906,0.030730174854398) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.033993158489466,-0.009099992923439,0.027069723233581,0.019563086330891,-0.003143843030557,0.023502497002482,-0.024674393236637,-0.059505768120289,-0.114834904670715,-0.048818700015545,-0.022578394040465,0.114395529031754,0.017254238948226,-0.110553421080112,-0.076882392168045,0.136472404003143) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.324910461902618,-0.185626611113548,-0.232070028781891,0.048588555306196,-0.053208623081446,-0.357067316770554,0.052540350705385,0.130000993609428,-0.010528102517128,0.019949220120907,-0.218532085418701,0.108638763427734,-0.013454722240567,-0.136618703603745,-0.195248827338219,-0.305818110704422) * MODEL1_texOff(vec2(0,0));
res += mat4(0.092676021158695,0.174458980560303,0.110582321882248,0.001410707714967,0.171446874737740,-0.210974782705307,-0.062180262058973,-0.046962380409241,-0.018630692735314,0.005674642045051,-0.009964819066226,-0.076372236013412,-0.110295206308365,-0.263867437839508,-0.337150543928146,-0.147535130381584) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.021448276937008,0.071068160235882,0.079645700752735,0.062747754156590,0.025846909731627,-0.006578354630619,0.016258487477899,0.040553387254477,-0.010593182407320,-0.011460841633379,-0.005982486996800,-0.105163030326366,0.029989292845130,-0.032032735645771,0.060584660619497,-0.028407905250788) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.046241108328104,0.010459046810865,0.191408157348633,-0.007328857202083,-0.070598781108856,0.092733919620514,-0.071647256612778,0.015392270870507,-0.042914345860481,-0.042275566607714,0.012630161829293,-0.011118290014565,-0.116366662085056,-0.055148795247078,-0.087662734091282,0.141976311802864) * MODEL1_texOff(vec2(1,0));
res += mat4(0.055035606026649,-0.006859980057925,0.063330680131912,0.222567304968834,0.072478152811527,0.007409695070237,0.054421912878752,-0.101698890328407,-0.017650565132499,-0.001574540277943,-0.009941177442670,-0.000609122565947,-0.004753727465868,-0.006497919093817,-0.007814577780664,-0.114841438829899) * MODEL1_texOff(vec2(1,1));
res += mat4(0.018219133839011,0.060050163418055,0.040101315826178,0.027955165132880,-0.025984819978476,-0.055753070861101,0.034824006259441,-0.015893006697297,0.086878292262554,0.040761031210423,0.054934274405241,0.077242359519005,-0.021816065534949,-0.028746930882335,-0.011707883328199,0.038021150976419) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.023806212469935,0.025825662538409,-0.026689611375332,0.135364249348640,0.033333189785480,-0.049564283341169,-0.017274007201195,-0.133984953165054,0.012874825857580,0.011499259620905,0.035655755549669,-0.036919206380844,0.043711327016354,-0.042388327419758,-0.041629962623119,-0.032170042395592) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.015503179281950,-0.070550642907619,0.081058062613010,0.005739920306951,-0.011956819333136,-0.148626670241356,0.034217584878206,-0.010891412384808,0.104189842939377,0.008879071101546,0.038447633385658,0.032969031482935,0.004578062798828,-0.023269400000572,-0.004777165129781,-0.041617467999458) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.071714848279953,-0.060360006988049,-0.006324308458716,-0.020296638831496,0.138503953814507,-0.100815393030643,-0.089196965098381,0.003995724022388,0.066796302795410,-0.003680008463562,0.059192657470703,0.102161914110184,0.006176393944770,0.043266292661428,-0.017107494175434,0.009490624070168) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.093203321099281,-0.190700829029083,0.216778844594955,-0.061329524964094,-0.099862024188042,-0.110463537275791,0.403850227594376,0.128618404269218,0.289244800806046,0.010392828844488,-0.005801142659038,-0.102103538811207,0.035382095724344,-0.159785598516464,0.117835953831673,-0.110393598675728) * MODEL2_texOff(vec2(0,0));
res += mat4(0.060350704938173,0.105082727968693,0.263786554336548,0.140727669000626,0.089003428816795,-0.036012846976519,0.123060323297977,-0.113940760493279,-0.042760256677866,-0.048936523497105,-0.070667997002602,0.007073408458382,-0.291024178266525,-0.149657621979713,-0.053472347557545,0.007098314352334) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.010956444777548,0.063585445284843,-0.005887344945222,-0.010003644041717,-0.014432706870139,0.008861157111824,0.056996311992407,-0.053162962198257,-0.033963896334171,-0.108661510050297,-0.016694320365787,-0.023916864767671,-0.022296769544482,-0.054222486913204,-0.029689561575651,-0.043355874717236) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.072471059858799,0.035280790179968,0.115401282906532,0.027601623907685,-0.030558057129383,-0.069528214633465,0.004988066386431,-0.035213354974985,0.113849945366383,-0.123844549059868,-0.076368130743504,0.168101683259010,0.042941723018885,0.007178892381489,-0.172628596425056,-0.033120978623629) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.080356150865555,-0.001657095854171,0.025236822664738,0.067790172994137,-0.013935534283519,-0.059651132673025,-0.064662374556065,-0.021472370252013,0.173433437943459,-0.094686798751354,-0.041141021996737,0.164896383881569,-0.303893208503723,-0.008276677690446,-0.058925502002239,-0.142533555626869) * MODEL2_texOff(vec2(1,1));
res += mat4(0.125411942601204,-0.052171330899000,-0.071478217840195,-0.068410217761993,0.056116096675396,-0.091966904699802,-0.050341539084911,0.033326178789139,0.050129458308220,-0.047482192516327,-0.005135960411280,0.033419467508793,0.016846792772412,0.078719481825829,-0.167567059397697,0.006453657988459) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.245768845081329,0.009849933907390,0.112801305949688,0.090485133230686,-0.022328259423375,-0.024395337328315,0.028076263144612,0.060636080801487,-0.047906123101711,-0.047924842685461,-0.071647964417934,-0.012784289196134,-0.259264647960663,0.227815434336662,0.238583564758301,-0.067694216966629) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.024556661024690,-0.072988711297512,0.053684554994106,-0.076355025172234,0.059697076678276,-0.070919290184975,-0.058719784021378,0.017521815374494,-0.071241073310375,-0.085041657090187,0.008446839638054,0.014160150662065,0.008863036520779,0.046197172254324,-0.111056901514530,-0.049504876136780) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.022043371573091,0.044093880802393,0.037554595619440,0.136167362332344,0.112481728196144,0.092151865363121,0.194999411702156,-0.041852649301291,-0.029190991073847,-0.052356954663992,0.006932332180440,-0.000796948268544,-0.000167530044564,0.140597179532051,0.129993036389351,0.048001870512962) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.098484270274639,0.026828020811081,-0.024738937616348,-0.293826460838318,-0.274456948041916,-0.279792785644531,-0.089878208935261,-0.084831684827805,0.273762017488480,-0.159612342715263,-0.134462490677834,0.343235820531845,-0.087172314524651,0.284506320953369,-0.045372728258371,-0.082020737230778) * MODEL3_texOff(vec2(0,0));
res += mat4(0.091937817633152,0.077076531946659,-0.009332690387964,0.242974460124969,-0.072729319334030,-0.121163934469223,0.014922566711903,-0.043889455497265,-0.074711434543133,-0.054600536823273,0.019753530621529,-0.173275083303452,-0.044202379882336,-0.010073712095618,0.068203315138817,-0.060279294848442) * MODEL3_texOff(vec2(0,1));
res += mat4(0.102908246219158,0.014983003959060,0.073973014950752,-0.111558109521866,0.040395025163889,0.272807240486145,0.085877090692520,0.203627318143845,0.003880360862240,-0.017525462433696,-0.048285134136677,-0.035697419196367,0.072295159101486,-0.055672764778137,0.013334418646991,0.060910407453775) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.150810167193413,-0.126364424824715,0.099930949509144,0.111991241574287,0.032153502106667,0.225210338830948,0.020570615306497,-0.111087970435619,-0.153659135103226,-0.030592346563935,-0.032817970961332,0.075621545314789,0.021846449002624,0.008665619418025,-0.039044279605150,0.009833109565079) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.209781870245934,0.058449212461710,-0.099681653082371,-0.018878089264035,0.106791026890278,0.054960805922747,0.012738578952849,0.040484484285116,0.017026493325830,-0.012642666697502,-0.031068669632077,0.121142335236073,-0.075539194047451,-0.045773137360811,-0.038969833403826,0.004364263731986) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.024631649255753,0.000690641463734,-0.037141107022762,-0.079690553247929,-0.040670499205589,-0.089807122945786,0.099542707204819,-0.091716252267361,0.023994155228138,0.086541682481766,0.019167432561517,-0.041392043232918,-0.037314079701900,0.005601726938039,-0.054910980165005,-0.036579143255949) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.031054832041264,0.143677324056625,0.104304522275925,0.035870462656021,0.015521270222962,0.041018940508366,-0.025606799870729,-0.132892936468124,0.024202007800341,0.014077898114920,-0.025663731619716,0.048920247703791,-0.041297819465399,-0.029062248766422,0.058664560317993,-0.031692288815975) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.013787743635476,-0.090982332825661,-0.086789771914482,-0.031618379056454,0.028199255466461,0.010594919323921,-0.033940367400646,0.063795141875744,0.035678166896105,0.005733266472816,-0.015413708053529,-0.024832606315613,-0.009323709644377,0.147839218378067,-0.048866029828787,-0.006099328864366) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.098631918430328,0.079627029597759,-0.034867987036705,-0.032034881412983,-0.031162634491920,0.060980200767517,-0.119623564183712,-0.072778306901455,-0.090806201100349,-0.057514533400536,-0.098219856619835,0.056259620934725,0.058737553656101,0.161267802119255,-0.062096707522869,-0.134255155920982) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.024158623069525,0.299238145351410,-0.189477577805519,-0.179592430591583,-0.005046144593507,-0.047333195805550,-0.064445391297340,-0.007135396357626,0.024756150320172,-0.205054432153702,-0.087340898811817,0.109653450548649,-0.160773694515228,-0.226504340767860,0.037670761346817,-0.183401316404343) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.183103054761887,0.070471934974194,-0.002697690390050,-0.050326302647591,0.040248874574900,-0.002315436257049,0.078507758677006,0.028949463739991,0.077519029378891,0.057510282844305,-0.065046705305576,0.017037697136402,0.004852467216551,0.003957235254347,-0.127843827009201,-0.000221970563871) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.001213754992932,-0.083465963602066,-0.056241188198328,-0.033802520483732,-0.014467429369688,0.003885021200404,-0.009175518527627,0.033242087811232,0.040780819952488,0.064715668559074,0.070393674075603,0.079400740563869,0.071440637111664,-0.083565719425678,-0.010219499468803,-0.044076081365347) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.071658909320831,-0.021846177056432,0.002421600976959,-0.072205200791359,-0.010969948954880,0.042822897434235,-0.060533661395311,-0.025319950655103,-0.082417219877243,0.072379268705845,0.073068529367447,-0.218261182308197,0.056082304567099,-0.013215497136116,-0.042747158557177,-0.101317659020424) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.100281804800034,0.028653938323259,-0.062098026275635,-0.011270936578512,-0.021449867635965,0.021054327487946,0.037542816251516,-0.054319441318512,-0.080639012157917,0.000091824680567,-0.038623794913292,-0.047193758189678,0.034509260207415,0.079477280378342,0.070604667067528,-0.071015812456608) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.004865150433034,0.071452014148235,-0.106968730688095,0.006938706152141,-0.004364823456854,0.048110477626324,0.023039279505610,0.002694311086088,-0.074189372360706,0.042688738554716,0.083779707551003,0.272342085838318,0.013093195855618,0.031086329370737,0.033736392855644,0.053332749754190) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.011541249230504,-0.078864693641663,0.093361683189869,-0.132158666849136,-0.073120824992657,0.115251816809177,0.047140125185251,0.026296313852072,0.159081012010574,0.083015121519566,0.144617751240730,-0.223928749561310,0.028031218796968,0.017677534371614,0.186299502849579,0.033443477004766) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.057210508733988,-0.133508533239365,-0.040589034557343,0.016326393932104,-0.034686032682657,-0.018687061965466,-0.090714447200298,-0.000824539398309,0.129014208912849,0.066226065158844,0.084154486656189,0.186183616518974,0.050605289638042,0.015035334043205,0.038952551782131,0.067843064665794) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.034302365034819,-0.080837599933147,0.133376210927963,0.039687450975180,-0.047387734055519,-0.014621787704527,-0.043937694281340,-0.001185104832985,0.110689222812653,0.037202507257462,-0.083749406039715,-0.076192930340767,0.023929914459586,0.204705625772476,0.197133406996727,0.053550813347101) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.026272248476744,-0.218628823757172,-0.156355112791061,-0.028003545477986,0.229997560381889,0.214574128389359,-0.141024485230446,-0.081398084759712,-0.132142692804337,0.099550291895866,0.061771899461746,0.168502211570740,-0.000397502706619,-0.082424186170101,-0.180604442954063,0.009683026932180) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.094463311135769,-0.168741479516029,0.052389632910490,-0.073371186852455,0.030928881838918,0.097283348441124,-0.015780519694090,0.044685598462820,-0.048471827059984,0.054368864744902,0.028528856113553,-0.028547506779432,-0.060345660895109,0.054071035236120,0.017898067831993,0.044610168784857) * MODEL5_texOff(vec2(0,1));
res += mat4(0.066473260521889,0.150086492300034,-0.052442368119955,-0.009290460497141,-0.013859475962818,0.097048304975033,0.006746161263436,-0.024262718856335,-0.073813796043396,0.060305964201689,0.018555704504251,0.111557960510254,0.023082664236426,-0.016008369624615,0.111049473285675,0.036251559853554) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.113392516970634,-0.081814728677273,0.205432817339897,0.077660419046879,0.132974714040756,-0.018538309261203,0.087671793997288,0.032628688961267,-0.152088269591331,-0.066160112619400,-0.146069705486298,-0.109010301530361,0.061536312103271,0.066990807652473,0.098101012408733,0.011487735435367) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.124082803726196,0.036642037332058,-0.237355813384056,-0.048165030777454,-0.060461986809969,0.045001279562712,-0.041278000921011,-0.022593673318624,-0.119547568261623,0.075377039611340,-0.140252351760864,-0.017870213836432,0.017774738371372,0.033377926796675,0.017536554485559,0.006265114992857) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.017986351624131,-0.012005944736302,-0.003887937404215,0.041345007717609,-0.001190740731545,-0.013419947586954,0.021742414683104,0.076254606246948,0.009281636215746,-0.082144804298878,-0.007114354055375,0.016429169103503,-0.001766761881299,0.030770588666201,-0.022599404677749,0.035781159996986) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.054986286908388,-0.045198522508144,0.039707046002150,-0.054595060646534,0.041227832436562,0.014234172180295,0.010495120659471,0.102121196687222,-0.119103983044624,0.017543878406286,-0.049669761210680,-0.009117936715484,0.031976956874132,-0.020691115409136,0.003295440692455,-0.000059102279920) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.043785128742456,-0.059135660529137,0.006317180115730,-0.007405712269247,0.125710472464561,0.126653164625168,-0.008503375574946,0.070632964372635,-0.040849983692169,-0.031455084681511,-0.143741294741631,-0.076934717595577,0.048227902501822,-0.010150073096156,0.092981323599815,-0.043106723576784) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.108192600309849,0.146142587065697,0.137787580490112,-0.067873090505600,0.043540816754103,0.012274005450308,0.028995819389820,-0.089134350419044,-0.040368359535933,-0.054532583802938,-0.023004509508610,-0.040662981569767,0.082224331796169,0.122702993452549,-0.051791001111269,0.012701213359833) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.283388018608093,0.149601876735687,-0.081595748662949,0.094008550047874,0.162172317504883,0.079855576157570,-0.151516556739807,0.029618531465530,0.164730668067932,0.113420322537422,0.009291484951973,0.284629970788956,-0.191480532288551,0.349951773881912,0.287058949470520,0.171200007200241) * MODEL6_texOff(vec2(0,0));
res += mat4(0.107402868568897,0.025044484063983,0.093416236341000,-0.000748970720451,-0.068544417619705,-0.006676089018583,0.131975591182709,0.030611347407103,-0.003882698714733,0.070901408791542,0.052864510565996,0.135475918650627,-0.153088450431824,0.135966300964355,-0.100323744118214,-0.107553437352180) * MODEL6_texOff(vec2(0,1));
res += mat4(0.025928895920515,0.074468240141869,-0.073287822306156,-0.033321984112263,0.044798105955124,0.048916537314653,-0.098031081259251,0.028779001906514,-0.068878553807735,0.051924988627434,-0.025080429390073,0.001839815988205,0.041239343583584,-0.154763713479042,-0.028747249394655,-0.079656168818474) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.039384592324495,0.067530095577240,0.178201273083687,-0.099341146647930,-0.036629341542721,0.057593803852797,0.107921704649925,-0.167473107576370,0.083085268735886,-0.007432550657541,-0.053057380020618,-0.040569011121988,0.002908132737502,-0.167026385664940,-0.076660007238388,0.094349041581154) * MODEL6_texOff(vec2(1,0));
res += mat4(0.064395137131214,0.038820397108793,-0.020499350503087,0.024941066280007,0.055371202528477,0.081563524901867,-0.086872823536396,0.083976909518242,-0.104015797376633,-0.038776434957981,-0.043603885918856,0.057683832943439,-0.061417683959007,-0.078793250024319,-0.092294581234455,0.119990766048431) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.005878648720682,-0.016797410324216,0.018636029213667,0.006900973152369) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_HQ_3x_Photo] mapping 8_6

vec4 hook()
{
vec4 res = vec4(0.004535099491477,-0.295403063297272,0.024296892806888,-0.265327632427216);
res += mat4(0.039378035813570,-0.055403504520655,0.030554411932826,0.019416244700551,0.025972057133913,0.027521561831236,-0.029703019186854,0.079785518348217,0.002897230908275,-0.109693557024002,0.029620954766870,-0.036659706383944,-0.023224329575896,-0.032428625971079,0.043223839253187,-0.014878722839057) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.060329277068377,-0.371088743209839,0.081065870821476,0.101963385939598,0.235905796289444,-0.018295301124454,-0.147169336676598,0.399233430624008,-0.038029354065657,-0.006963510531932,0.024619538336992,-0.079774558544159,0.008643159642816,-0.123326309025288,-0.042241800576448,-0.104268573224545) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.017370251938701,-0.038817442953587,0.036795385181904,0.065419293940067,0.028788946568966,-0.023303268477321,0.052753474563360,0.199734047055244,-0.001029900391586,-0.061895158141851,0.025944652035832,0.010860003530979,0.000608961738180,-0.278537809848785,-0.019880862906575,-0.072575844824314) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.040169648826122,-0.045567549765110,0.029487965628505,-0.027936177328229,-0.020767452195287,-0.026926046237350,-0.144140347838402,-0.011428073048592,-0.101874276995659,-0.002863745670766,0.080597162246704,0.033984582871199,-0.020357822999358,0.065225809812546,0.078268781304359,0.051973842084408) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.123558200895786,0.154986619949341,0.283453255891800,-0.148182377219200,0.071471855044365,-0.182537600398064,-0.082651406526566,0.312694936990738,0.039327990263700,-0.021291879937053,0.454942971467972,-0.039067558944225,-0.016929442062974,0.042646326124668,0.109733365476131,-0.062369827181101) * MODEL1_texOff(vec2(0,0));
res += mat4(0.020988309755921,0.105163469910622,-0.117873176932335,-0.019042914733291,-0.036590468138456,-0.180088683962822,-0.035241082310677,0.132971748709679,0.016578800976276,-0.057241898030043,0.004178472794592,0.013860562816262,-0.002351190894842,0.008404176682234,-0.028736213222146,0.010524992831051) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.036506921052933,0.011203343980014,0.056439679116011,0.018427677452564,-0.009827877394855,0.009983048774302,-0.043169833719730,-0.039819173514843,-0.123905435204506,-0.004290481563658,0.001299282070249,-0.017033092677593,0.032257869839668,-0.068926483392715,0.020626813173294,0.032148480415344) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.066958405077457,-0.098719790577888,-0.028993338346481,0.151754871010780,-0.108316890895367,0.085781611502171,-0.035110432654619,-0.076878659427166,0.011658036150038,-0.018954647704959,-0.025022609159350,0.007674404419959,-0.021454870700836,-0.065222874283791,-0.035395279526711,-0.031319722533226) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.009415919892490,-0.023539260029793,0.091500513255596,0.062748298048973,-0.050419278442860,0.049706589430571,-0.041338063776493,-0.030804757028818,0.007604231126606,0.014180112630129,-0.023051392287016,0.002724790014327,0.005662870127708,-0.060200579464436,-0.018068058416247,0.023377766832709) * MODEL1_texOff(vec2(1,1));
res += mat4(0.007633567787707,-0.003379436908290,-0.009440679103136,0.009076048620045,0.048599544912577,0.007559546269476,-0.009810450486839,-0.103908307850361,0.026780670508742,0.101809203624725,-0.106030769646168,-0.045275203883648,0.015329825691879,-0.023091709241271,-0.040674529969692,0.002920185681432) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.065325126051903,-0.152276515960693,0.138692811131477,-0.042493097484112,-0.139874830842018,-0.074584044516087,-0.071271508932114,-0.127158999443054,-0.053951527923346,0.282386898994446,-0.062045160681009,0.011457179673016,-0.005143762100488,-0.187691926956177,-0.008421401493251,0.126927956938744) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.060414176434278,-0.007492886390537,0.031888443976641,-0.079097583889961,0.042879428714514,-0.058262255042791,0.236137524247169,-0.116701737046242,-0.009628335945308,0.023372666910291,-0.038369968533516,0.034854844212532,-0.058513805270195,-0.253272593021393,-0.060483258217573,-0.011556846089661) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.006980541162193,-0.116435408592224,0.102446742355824,-0.048960033804178,-0.034303277730942,-0.090997464954853,0.223494306206703,-0.043614342808723,-0.027235351502895,-0.051599852740765,0.108323112130165,0.143948987126350,0.020302178338170,0.029025265946984,0.000844313879497,-0.052259083837271) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.042586293071508,-0.077368743717670,-0.217745363712311,0.191494509577751,0.063481405377388,-0.010395655408502,-0.201574623584747,-0.026294320821762,0.015704669058323,0.264849931001663,-0.121902473270893,0.038388054817915,0.069180861115456,0.047827407717705,-0.285791575908661,-0.145821392536163) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.077805750072002,0.012757714837790,-0.027058785781264,-0.082662843167782,-0.087301447987556,0.023462992161512,0.211311325430870,-0.089977458119392,0.034692056477070,-0.004281362518668,0.012149934656918,0.067400649189949,-0.005248391069472,0.044173132628202,-0.059086970984936,-0.106689408421516) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.009131409227848,0.018118264153600,-0.003457387443632,-0.009973742999136,-0.035169202834368,-0.005161365494132,-0.003617965383455,-0.065646961331367,0.012396560050547,0.049818944185972,-0.063108526170254,-0.069151252508163,0.022345846518874,-0.062108390033245,-0.004516186192632,0.020196933299303) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.016993517056108,0.005550175439566,0.092825256288052,0.060457490384579,-0.034767664968967,-0.040366478264332,-0.030621612444520,-0.028595352545381,0.169182926416397,-0.041827790439129,-0.059312503784895,-0.076426275074482,-0.015043511055410,-0.026454677805305,-0.022871829569340,0.040239695459604) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.007725097704679,0.001419996842742,0.076546721160412,-0.018779538571835,0.002453597728163,-0.040630757808685,-0.020712776109576,-0.015073755756021,-0.046014230698347,-0.147669285535812,0.007256506010890,-0.160312354564667,-0.040852863341570,-0.095919892191887,-0.042141716927290,-0.031056996434927) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.004881938453764,0.012049334123731,-0.002871369244531,-0.056588221341372,0.031614936888218,0.056598648428917,-0.007349424995482,0.072252474725246,-0.061472851783037,-0.066043131053448,-0.048200588673353,-0.103124983608723,-0.116097658872604,-0.144302830100060,0.159408316016197,0.176151588559151) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.010812439955771,-0.127765938639641,-0.075826056301594,-0.080137342214584,0.002262879395857,0.014968607574701,-0.037039373070002,-0.004941551480442,-0.046816509217024,0.334838777780533,-0.033981896936893,0.000911868119147,0.010912090539932,-0.171388506889343,-0.186630934476852,0.458451628684998) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.023363649845123,-0.021720834076405,-0.044806323945522,-0.038063168525696,0.000156622205395,-0.059093654155731,-0.035821955651045,-0.179388031363487,-0.003241868922487,0.016308199614286,0.048991527408361,-0.100873522460461,-0.042156696319580,-0.108614049851894,-0.069076560437679,0.090670265257359) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.036117754876614,0.131427556276321,-0.060711123049259,0.065987110137939,-0.007089809514582,-0.101436503231525,-0.006860930472612,0.025668216869235,-0.116771310567856,0.072505608201027,0.000158466689754,-0.066891103982925,0.048520881682634,0.120740219950676,-0.034982278943062,-0.120162263512611) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.021120686084032,0.225784152746201,-0.151798620820045,-0.002031641779467,-0.001701508765109,-0.205570340156555,-0.013833583332598,0.030140379443765,0.282608270645142,-0.040200605988503,0.278423905372620,0.224128037691116,-0.196906298398972,-0.001598895061761,0.091654524207115,-0.090587802231312) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.007968353107572,0.123505279421806,-0.052351884543896,-0.161175817251205,-0.018114434555173,-0.028968507423997,-0.111600540578365,0.021220980212092,-0.092768989503384,-0.201485171914101,-0.092745937407017,-0.010001275688410,0.082119978964329,-0.066294580698013,-0.041207820177078,-0.035703863948584) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.005614353343844,0.018708324059844,-0.042696226388216,0.038326669484377,-0.036499049514532,0.208554625511169,0.035298086702824,0.054127056151628,0.016875840723515,-0.043943896889687,0.027579028159380,0.018965462222695,0.026426682248712,-0.050166103988886,0.029571536928415,0.031591501086950) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.096759185194969,-0.183082327246666,-0.098806321620941,0.108973696827888,-0.054138783365488,0.238179996609688,-0.017546975985169,0.089972145855427,-0.093686774373055,-0.031516749411821,-0.049959771335125,-0.004663268569857,0.059284992516041,-0.045495431870222,0.017874049022794,-0.005272134207189) * MODEL3_texOff(vec2(1,0));
res += mat4(0.005844068247825,-0.035294067114592,0.024973912164569,0.063858762383461,-0.002502935240045,0.071372888982296,-0.021878639236093,0.042034145444632,-0.024397198110819,-0.008685620501637,0.004155854694545,-0.050191041082144,0.027508795261383,-0.052215248346329,-0.000465122517198,-0.030590128153563) * MODEL3_texOff(vec2(1,1));
res += mat4(0.008737284690142,0.021142981946468,0.059315271675587,-0.038879323750734,0.089844763278961,-0.064041242003441,-0.028382811695337,0.054446749389172,-0.046309247612953,0.012903102673590,0.059168864041567,-0.003532717004418,0.062943361699581,0.065882191061974,-0.011242439039052,0.117751672863960) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.044310372322798,0.244784101843834,-0.059467241168022,-0.352263182401657,-0.098273254930973,0.120780721306801,-0.147876679897308,-0.067957714200020,0.020148208364844,-0.057289008051157,0.033188726752996,0.092917948961258,-0.009869164787233,-0.034452840685844,0.048165764659643,0.115654550492764) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.023082675412297,0.058299623429775,-0.015222779475152,-0.061770867556334,0.037480533123016,0.023083398118615,0.081884354352951,0.004676837939769,0.005207855720073,-0.130219772458076,0.040945142507553,0.090151816606522,0.048362039029598,0.069606989622116,-0.039417665451765,0.113353788852692) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.047649733722210,0.034819357097149,-0.065451510250568,0.032222129404545,0.024154247716069,0.043278962373734,0.056125070899725,-0.092836737632751,-0.054142363369465,-0.049050480127335,-0.408068716526031,0.042805485427380,0.008320565335453,0.048162166029215,0.126584887504578,-0.014262896962464) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.149259671568871,0.153774052858353,0.120110511779785,0.021363684907556,0.022752825170755,-0.034591931849718,-0.179625496268272,0.078846395015717,0.009570760652423,-0.163042798638344,0.150183707475662,-0.086330361664295,0.059949092566967,-0.133772775530815,0.080080687999725,0.000144816774991) * MODEL4_texOff(vec2(0,0));
res += mat4(0.028390312567353,0.081329658627510,-0.176133915781975,-0.094732567667961,-0.046930234879255,0.045156750828028,0.102022461593151,0.022733392193913,0.028145287185907,0.149492621421814,-0.123724512755871,-0.056238505989313,0.049222894012928,0.081752710044384,-0.114246673882008,0.034652806818485) * MODEL4_texOff(vec2(0,1));
res += mat4(0.017902379855514,-0.053462412208319,0.000215660984395,-0.076838880777359,0.052601963281631,0.020007342100143,0.037981793284416,0.005045183468610,-0.033373970538378,0.060983378440142,-0.059111732989550,0.038889281451702,-0.000103044782009,-0.039426539093256,0.035954046994448,-0.028094902634621) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.164263591170311,0.012621404603124,-0.079021908342838,0.045236989855766,-0.041513349860907,-0.000202917086426,0.064180329442024,-0.011735368520021,0.003767227055505,0.073326408863068,0.077117390930653,0.035586617887020,0.042083725333214,0.040605828166008,0.068122200667858,0.050029736012220) * MODEL4_texOff(vec2(1,0));
res += mat4(0.042087011039257,0.005953249987215,0.008038754574955,-0.067372202873230,-0.005370809696615,0.002030480420217,0.016404367983341,0.046766318380833,0.017448237165809,0.024248288944364,-0.075054399669170,0.032918550074100,0.025575596839190,0.056937772780657,-0.022663872689009,0.040540482848883) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.008088266476989,0.251619279384613,0.067778825759888,0.008507532998919,0.007238742895424,0.004326834809035,-0.011081498116255,-0.072401694953442,-0.011819618754089,-0.116264007985592,0.069340236485004,0.032353304326534,0.053778033703566,-0.002281089080498,-0.016129355877638,0.047671385109425) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.005416797474027,0.168864384293556,-0.045961521565914,0.003993639256805,-0.047999288886786,0.296694397926331,0.003169008530676,-0.110780812799931,-0.024138797074556,-0.209898546338081,-0.017956195399165,-0.296126961708069,0.033120147883892,-0.168434083461761,-0.007032908964902,0.007257895544171) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.014546455815434,0.082029044628143,-0.099271096289158,0.087337039411068,0.012840281240642,-0.000115670409286,-0.021548770368099,-0.017442259937525,-0.000843007583171,0.046422041952610,0.014818909578025,-0.023246034979820,0.031551457941532,-0.004592388868332,0.056115597486496,-0.006591772194952) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.026415783911943,-0.043474670499563,-0.085746981203556,0.047330010682344,0.075592711567879,0.148826137185097,0.004984225146472,-0.023053575307131,-0.005198867060244,-0.100757092237473,0.000508723256644,-0.031236639246345,-0.072066999971867,0.100020363926888,0.464117974042892,-0.061235204339027) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.061593230813742,0.020077060908079,-0.122753120958805,-0.014634423889220,-0.141437754034996,0.269578397274017,0.086016833782196,-0.487314403057098,0.053736485540867,-0.085435956716537,0.023573307320476,-0.087800778448582,0.112749762833118,-0.060384206473827,-0.067678712308407,0.052330225706100) * MODEL5_texOff(vec2(0,0));
res += mat4(0.026123579591513,-0.034592907875776,-0.148071318864822,-0.105954609811306,0.065567359328270,0.193672239780426,0.004256068728864,0.043066971004009,-0.009700159542263,-0.044433422386646,-0.020603649318218,0.074448391795158,0.009204365313053,-0.013063550926745,0.092135392129421,0.003730883123353) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.006861785426736,0.118114322423935,-0.091107144951820,0.010797580704093,0.099789716303349,0.044638350605965,-0.028644952923059,0.162377640604973,-0.012057613581419,0.090141966938972,-0.021200217306614,-0.031990781426430,-0.004245071206242,-0.013200705870986,-0.050260666757822,-0.040493875741959) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.036908857524395,-0.011913714930415,-0.113515712320805,0.182602956891060,0.214559495449066,0.125050500035286,0.071986675262451,-0.043961402028799,0.005147832911462,-0.092200867831707,-0.014442215673625,-0.136789873242378,-0.071576856076717,-0.016277974471450,0.054477758705616,-0.002324484521523) * MODEL5_texOff(vec2(1,0));
res += mat4(0.002059803809971,0.069269828498363,0.004300536122173,-0.006615921854973,0.027984559535980,0.048356030136347,-0.057653207331896,-0.036387760192156,0.003893164684996,0.018129281699657,-0.008260369300842,0.036653753370047,0.008051555603743,0.019710730761290,0.019440112635493,-0.011538830585778) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.013797436840832,0.131779506802559,-0.035208132117987,0.026602795347571,0.004494358785450,0.049262329936028,-0.023836886510253,0.030692899599671,0.016483936458826,-0.083785340189934,0.127913177013397,-0.097097717225552,-0.019958965480328,0.014918226748705,-0.023093374446034,-0.048810105770826) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.039818841964006,-0.216389566659927,0.051979638636112,0.100843548774719,0.009293228387833,0.214443072676659,-0.037490874528885,0.069611601531506,0.024915771558881,0.016362167894840,0.086243100464344,-0.059468109160662,0.022232804447412,-0.105625480413437,0.031480625271797,0.045313578099012) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.028746889904141,0.021717097610235,-0.035936057567596,-0.008299414999783,-0.013467230834067,0.194925963878632,0.052481587976217,0.067055597901344,0.021836694329977,0.020761139690876,-0.002609054790810,-0.015320427715778,-0.072857141494751,-0.030987586826086,-0.071723647415638,-0.038903966546059) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.059529125690460,0.050445806235075,-0.100712493062019,-0.040443342179060,-0.006404948886484,0.102535225450993,-0.022378798574209,-0.045285694301128,0.072606794536114,-0.120354391634464,0.187578409910202,-0.153713852167130,0.147481426596642,-0.009388317354023,-0.034451328217983,-0.169387787580490) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.064556457102299,-0.172713011503220,0.153163596987724,0.052455827593803,0.041742395609617,-0.023150727152824,-0.006178996991366,0.070962853729725,-0.219377711415291,-0.042284235358238,-0.112949110567570,-0.241612195968628,-0.570803165435791,0.051691472530365,0.024107433855534,-0.186806976795197) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.040100604295731,0.073344841599464,-0.059291377663612,0.095247983932495,-0.025349440053105,-0.026976644992828,-0.149237886071205,0.093196712434292,0.117569573223591,-0.077680900692940,0.253419131040573,-0.057956725358963,0.032167311757803,-0.015156479552388,-0.057816199958324,0.021135419607162) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.092682167887688,0.083883918821812,0.019768003374338,-0.049303092062473,0.011329146102071,-0.000056940458308,-0.038792882114649,0.027396123856306,-0.033895391970873,0.024865604937077,0.043090272694826,0.052862487733364,0.176587894558907,-0.086223900318146,-0.000376269512344,0.019075062125921) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.215683236718178,-0.074753992259502,-0.047297563403845,-0.084902852773666,-0.035542372614145,0.018413899466395,-0.058254487812519,0.052850231528282,0.103555113077164,-0.037296310067177,0.079796582460403,0.025581253692508,0.118015490472317,-0.097227901220322,0.093672536313534,0.008321244269609) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.009264905005693,0.020251363515854,-0.061202473938465,-0.047588128596544,0.004415596369654,0.077613130211830,0.042481858283281,0.052862610667944,0.062333647161722,-0.017383623868227,0.047760728746653,0.046759314835072,0.069767847657204,-0.096161998808384,-0.078000321984291,0.008732799440622) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.963984012603760,-0.001862272503786,0.627224206924438,0.005036439746618) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV1
//!DESC [AiUpscale_HQ_3x_Photo] sub-pixel convolution 1

vec4 hook()
{
vec3 res = vec3(0.000152522479766,0.000167923426488,0.000219027628191);
res += mat4x3(0.004743987694383,0.002870660508052,0.002935652621090,0.001518949400634,0.002441224874929,0.001199452788569,-0.005835127085447,-0.004177205730230,-0.001838537515141,0.000490976322908,-0.004570053424686,-0.002302643842995) * MODEL7_texOff(vec2(-1,-1));
res += mat4x3(0.036903280764818,0.028563486412168,0.012526003643870,-0.021226648241282,-0.017013695091009,-0.006473234388977,-0.019478715956211,0.004440280608833,0.021656733006239,0.018884567543864,0.022593170404434,0.013453823514283) * MODEL7_texOff(vec2(-1,0));
res += mat4x3(-0.002984008984640,0.004916159901768,0.020815486088395,0.003690157085657,0.000236613384914,-0.010052952915430,0.000906112953089,0.003052478656173,-0.001778534380719,-0.003226220374927,-0.002442813711241,0.007035483606160) * MODEL7_texOff(vec2(-1,1));
res += mat4x3(-0.006357932928950,-0.002112530870363,-0.000414818467107,-0.012219137512147,-0.003923288546503,-0.001972093014047,0.009149896912277,0.004900244064629,0.003722770372406,-0.004816160071641,-0.005434366408736,-0.002162958029658) * MODEL7_texOff(vec2(0,-1));
res += mat4x3(-0.009186112321913,-0.010918921791017,-0.011042634956539,-0.035506904125214,-0.040305856615305,-0.029062846675515,0.051239874213934,-0.028626073151827,-0.019833289086819,-0.003885958576575,0.001708896947093,-0.002014767378569) * MODEL7_texOff(vec2(0,0));
res += mat4x3(-0.003077544970438,-0.004707942251116,-0.006701231002808,-0.000268470816081,-0.006129171699286,-0.017468789592385,0.003797725774348,-0.020143419504166,0.014290963299572,-0.005273253191262,-0.009974541142583,-0.008498239330947) * MODEL7_texOff(vec2(0,1));
res += mat4x3(0.002252490725368,0.001030452665873,0.000182465621037,0.001159403123893,-0.000274936290225,0.001265493105166,0.000304662768031,-0.001153074903414,-0.002062418730929,0.000925352214836,0.000065141350206,-0.000035040171497) * MODEL7_texOff(vec2(1,-1));
res += mat4x3(0.003433434292674,0.002870604628697,0.002890305593610,0.002962412079796,0.001617922098376,0.000359391735401,-0.001819161698222,0.003331114538014,0.000497296277899,0.001252779387869,0.003075197106227,0.001976477913558) * MODEL7_texOff(vec2(1,0));
res += mat4x3(0.001286246348172,0.002370450645685,0.003276194911450,0.003521603532135,0.004943700041622,0.006019361782819,-0.003053606487811,0.001364380004816,-0.002196838846430,-0.000407945743063,-0.000160521085490,0.000457460817415) * MODEL7_texOff(vec2(1,1));
res += mat4x3(0.005940589588135,0.000234389983234,-0.002582299290225,-0.018523590639234,-0.000094932758657,0.005565480329096,-0.001672919839621,-0.008808160200715,0.005205127410591,0.004778654314578,-0.002625182271004,-0.002613514428958) * MODEL8_texOff(vec2(-1,-1));
res += mat4x3(0.009530765004456,0.013816276565194,0.015204979106784,0.015331598930061,0.000565241090953,-0.019640043377876,-0.008190840482712,-0.004958338104188,0.013043928891420,-0.007586581166834,0.014907589182258,0.019203603267670) * MODEL8_texOff(vec2(-1,0));
res += mat4x3(0.000028475144063,0.000021379966711,0.003845791332424,-0.005214905366302,-0.002970140194520,0.012557616457343,0.000788116361946,0.001420665415935,-0.000891612842679,0.001747420406900,0.001887321588583,-0.007482624612749) * MODEL8_texOff(vec2(-1,1));
res += mat4x3(0.018381128087640,0.004885238129646,0.001922161900438,0.006641202140599,0.006334619130939,0.002550762379542,-0.012414180673659,-0.015304916538298,0.011392728425562,0.017184471711516,0.005016081035137,-0.000755320535973) * MODEL8_texOff(vec2(0,-1));
res += mat4x3(0.006737703457475,0.026347726583481,0.032044008374214,-0.003909126389772,0.000078740587924,0.005083313211799,-0.013032055459917,-0.018473142758012,0.040914941579103,-0.045246504247189,-0.037452511489391,0.016003137454391) * MODEL8_texOff(vec2(0,0));
res += mat4x3(0.000357560842531,-0.005887031555176,-0.006799449678510,-0.000895194301847,-0.001346931443550,0.000851879827678,0.002143202582374,0.000705214682966,0.002796338871121,-0.000966734485701,0.011474207974970,0.007475151214749) * MODEL8_texOff(vec2(0,1));
res += mat4x3(-0.000591458752751,-0.001716335187666,-0.002081571845338,-0.002276421524584,-0.001914461376145,-0.000851921155117,0.001535331364721,0.000006273035069,-0.000681229517795,-0.003425918752328,-0.005220793187618,-0.003785471199080) * MODEL8_texOff(vec2(1,-1));
res += mat4x3(-0.004697496537119,-0.001804056577384,0.000862320943270,0.001189482631162,-0.000748439982999,-0.002581049455330,-0.000118332318380,0.001167120411992,0.002904816996306,0.004283282905817,0.000134573710966,-0.001768438960426) * MODEL8_texOff(vec2(1,0));
res += mat4x3(0.000711224449333,-0.001397927291691,-0.002993084257469,-0.000271742756013,0.000365240790416,0.003246146487072,0.000365866231732,0.001846562372521,-0.000359782658052,0.005268205422908,0.004081798717380,0.000120601544040) * MODEL8_texOff(vec2(1,1));
res += mat4x3(-0.000644197221845,0.001406242721714,0.000880197214428,-0.000434921530541,0.000457780493889,0.001811982714571,-0.006780456285924,-0.000750576728024,-0.001033525681123,-0.000772374914959,0.001590617932379,0.003406672971323) * MODEL9_texOff(vec2(-1,-1));
res += mat4x3(-0.010417847894132,0.000067540408054,0.007825629785657,-0.002262440277264,-0.000373920949642,-0.003509490285069,-0.003263923339546,0.023834580555558,0.002286540810019,0.034719884395599,-0.014431447722018,-0.023413559421897) * MODEL9_texOff(vec2(-1,0));
res += mat4x3(0.001786725595593,0.004083248786628,0.004670318681747,-0.005135143641382,0.001983694266528,0.002726846374571,0.002466677688062,0.002742522861809,-0.016323840245605,-0.005173708312213,-0.015253639779985,0.012067668139935) * MODEL9_texOff(vec2(-1,1));
res += mat4x3(-0.015342316590250,0.012211509048939,0.002137450501323,-0.002355931093916,0.004582790192217,0.000918771373108,0.009923283010721,0.005512318108231,-0.001960745081306,-0.003848943626508,-0.002953356364742,0.003063154872507) * MODEL9_texOff(vec2(0,-1));
res += mat4x3(-0.009199902415276,0.052009284496307,-0.031434535980225,0.012714908458292,-0.015267881564796,-0.007765708956867,0.029645556584001,-0.023692473769188,-0.021103668957949,-0.025381803512573,0.002203102223575,0.025577524676919) * MODEL9_texOff(vec2(0,0));
res += mat4x3(0.002406205981970,0.008735287003219,-0.022422801703215,-0.016919143497944,-0.021450271829963,0.044532027095556,-0.003305596532300,-0.003007189137861,0.017582554370165,0.004227571655065,0.003107353113592,-0.001330152968876) * MODEL9_texOff(vec2(0,1));
res += mat4x3(-0.002380102407187,0.000660386402160,0.002540600486100,-0.000705646816641,0.001316225738265,0.001194881740957,-0.000965672137681,0.004788076039404,0.000637244665995,0.005802635103464,-0.005022358614951,-0.004328036680818) * MODEL9_texOff(vec2(1,-1));
res += mat4x3(-0.000199185553356,-0.003086024895310,-0.001332288840786,0.001219214522280,-0.001044696429744,-0.005537259858102,-0.000082449456386,0.000404673482990,0.000700241769664,-0.001363157294691,-0.001056785346009,0.002522084629163) * MODEL9_texOff(vec2(1,0));
res += mat4x3(0.001017470145598,-0.003177162492648,0.001776362303644,-0.002714339178056,-0.001146095921285,0.000657811120618,-0.001217228360474,-0.002681510290131,-0.000055835647800,-0.001379644963890,-0.000298990547890,0.003446178510785) * MODEL9_texOff(vec2(1,1));
res += mat4x3(0.013155957683921,0.005826640874147,-0.010586246848106,0.002780040958896,0.002358369762078,0.002894844859838,-0.002452840562910,-0.001781596802175,-0.000386565923691,-0.002567530842498,-0.000780365022365,-0.001054593012668) * MODEL10_texOff(vec2(-1,-1));
res += mat4x3(-0.003871588502079,-0.005969614721835,-0.002076069591567,0.016767986118793,-0.012867290526628,-0.005455801729113,0.002908732742071,0.016037024557590,-0.001878097304143,-0.001806091400795,-0.016188038513064,-0.007605051156133) * MODEL10_texOff(vec2(-1,0));
res += mat4x3(0.001260507851839,0.001190695445985,-0.000655959825963,0.002025279682130,-0.005781550891697,-0.001107772463001,0.006000238005072,0.006385711487383,-0.018178038299084,0.000268869713182,0.012113898992538,0.017673626542091) * MODEL10_texOff(vec2(-1,1));
res += mat4x3(0.033408328890800,-0.014624812640250,-0.022106969729066,0.004603436682373,0.000573547265958,0.002549165394157,-0.003379887435585,-0.002379662822932,-0.002016457030550,0.029174046590924,0.013352839276195,-0.000365759857232) * MODEL10_texOff(vec2(0,-1));
res += mat4x3(-0.007759638596326,-0.006805269513279,0.011410590261221,0.037492871284485,-0.006469128187746,-0.018265699967742,-0.030461266636848,0.015111171640456,0.007544067222625,-0.038427688181400,-0.034159984439611,0.010732464492321) * MODEL10_texOff(vec2(0,0));
res += mat4x3(0.002193219028413,0.003661935916170,-0.000665270898025,0.011466446332633,-0.005483812652528,-0.024075739085674,0.003637271700427,0.017156114801764,-0.005822174251080,0.003236637217924,0.008615393191576,-0.008062525652349) * MODEL10_texOff(vec2(0,1));
res += mat4x3(-0.001646185293794,0.003705520648509,0.001086624455638,-0.003090544836596,0.001922938041389,0.002371776150540,0.002927819965407,-0.001305895508267,-0.001251975656487,0.006644860375673,0.000879515311681,-0.004086225293577) * MODEL10_texOff(vec2(1,-1));
res += mat4x3(-0.001610424020328,0.000312416406814,-0.002014789264649,0.002192223910242,0.000802755879704,-0.000136219779961,0.000152606327902,-0.000066701264586,0.003640453796834,0.005006582476199,0.007410531863570,0.009846007451415) * MODEL10_texOff(vec2(1,0));
res += mat4x3(-0.000582826323807,-0.000196392080397,-0.000337117584422,-0.001708392752334,-0.000839755870402,0.002658330602571,0.001573442132212,0.000646413536742,-0.003674658015370,-0.002295527141541,-0.001497696153820,0.000111415560241) * MODEL10_texOff(vec2(1,1));
res += mat4x3(0.014381228946149,0.020025625824928,0.009354492649436,-0.003627027384937,0.001215699827299,0.002209669211879,0.004307331051677,-0.003600219497457,-0.000724555575289,-0.005883438047022,0.012879271060228,0.001295330352150) * MODEL11_texOff(vec2(-1,-1));
res += mat4x3(-0.000441884854808,-0.029017830267549,-0.019989103078842,0.010256000794470,0.001926451106556,-0.004190161824226,-0.019799254834652,-0.010688439011574,0.023409305140376,0.025304768234491,0.000146138918353,-0.038525044918060) * MODEL11_texOff(vec2(-1,0));
res += mat4x3(-0.001471375464462,-0.002400329336524,0.004139531869441,-0.002403640653938,0.001338287955150,0.005910024978220,-0.000513471954037,0.001645611948334,0.009714481420815,-0.003183097811416,-0.002719944342971,0.005296544637531) * MODEL11_texOff(vec2(-1,1));
res += mat4x3(-0.010014382191002,-0.001074618892744,-0.004447390791029,-0.028387894853950,-0.009202955290675,-0.000400871387683,-0.025033330544829,0.005600112024695,0.004680567421019,-0.013540283776820,-0.012948437593877,-0.002622309839353) * MODEL11_texOff(vec2(0,-1));
res += mat4x3(0.020330119878054,-0.009709546342492,-0.037477541714907,-0.014817280694842,-0.032801155000925,-0.044224660843611,0.001822659047320,0.037184163928032,-0.020568007603288,-0.008027645759284,0.029896166175604,0.024628756567836) * MODEL11_texOff(vec2(0,0));
res += mat4x3(0.004890941083431,0.006770381238312,0.013164598494768,-0.001507757697254,-0.000358897319529,-0.000990863190964,-0.001060220180079,-0.002176495734602,-0.014111304655671,-0.001380886533298,-0.002015558769926,-0.009314279071987) * MODEL11_texOff(vec2(0,1));
res += mat4x3(0.005508679896593,0.002218572888523,0.000227466633078,-0.002122527221218,0.001825022394769,0.002576992148533,0.000320579129038,-0.001122066401877,0.005390147212893,0.000978889642283,0.005188524257392,0.004590200260282) * MODEL11_texOff(vec2(1,-1));
res += mat4x3(0.002731535583735,0.004722892306745,0.005468235351145,-0.002433969406411,-0.005002450197935,-0.006000483408570,-0.000405733851949,-0.004139884840697,-0.002775524975732,-0.004302247893065,-0.002202586503699,-0.000666961597744) * MODEL11_texOff(vec2(1,0));
res += mat4x3(-0.003151611890644,-0.001811274909414,-0.000299797364278,-0.002321177395061,-0.001878488343209,-0.002973310183734,0.001700995606370,0.003456891747192,0.000725780788343,0.001624594209716,0.000193651969312,-0.004072617273778) * MODEL11_texOff(vec2(1,1));
res += mat4x3(-0.012942985631526,-0.006771241314709,-0.001552332309075,0.001232011592947,0.000691608584020,0.000765055476222,0.003811861155555,-0.001499498728663,-0.001798036159016,0.001982287038118,-0.000671595800668,-0.000266987684881) * MODEL12_texOff(vec2(-1,-1));
res += mat4x3(-0.007140574511141,-0.007650574203581,-0.011859352700412,0.000466890138341,0.001050855731592,0.001464365632273,-0.004325335845351,-0.000665093306452,0.005219653714448,-0.004568555392325,0.001724083325826,0.002759398659691) * MODEL12_texOff(vec2(-1,0));
res += mat4x3(-0.002652324736118,-0.007805700413883,-0.008323669433594,0.001618175534531,0.001618244452402,0.000810010300484,0.002789054997265,0.002433866029605,-0.001429828698747,0.000870756339282,-0.003190884133801,-0.007689567282796) * MODEL12_texOff(vec2(-1,1));
res += mat4x3(0.007531877607107,-0.001678987871855,-0.002590662799776,-0.007205778732896,-0.005960309412330,-0.002668055472896,0.015525016002357,-0.002350374357775,-0.007158765569329,0.020537061616778,0.004722023382783,-0.002039082581177) * MODEL12_texOff(vec2(0,-1));
res += mat4x3(0.020914146676660,0.036959297955036,0.028883004561067,0.001851593027823,-0.001376962522045,-0.005671193823218,-0.022864820435643,-0.005939258262515,0.013962579891086,0.018001442775130,0.036327172070742,0.038863498717546) * MODEL12_texOff(vec2(0,0));
res += mat4x3(-0.004649898502976,-0.010643647983670,-0.002820844296366,-0.001697484520264,-0.001069698715582,0.002173391869292,0.008649560622871,0.005468021146953,-0.015985051169991,0.002136869588867,0.000466667697765,0.002366870874539) * MODEL12_texOff(vec2(0,1));
res += mat4x3(-0.005888949614018,-0.001981930807233,-0.000462124211481,0.005972524173558,0.004672919400036,0.005752979777753,-0.000145149911987,0.000180164919584,-0.000052201587096,0.006643192842603,0.000248443131568,-0.003065680386499) * MODEL12_texOff(vec2(1,-1));
res += mat4x3(-0.007796610239893,-0.008184122852981,-0.007824937812984,0.019306883215904,0.018647935241461,0.011532036587596,0.002111313166097,0.000517499051057,-0.000331359828124,0.006628599949181,0.010500689037144,0.012307951226830) * MODEL12_texOff(vec2(1,0));
res += mat4x3(0.000224771560170,-0.001711333054118,-0.004833195358515,-0.001074800500646,0.002268068958074,0.009837045334280,0.000390642642742,0.000094761475339,0.001836305833422,0.000787020660937,0.001387950964272,0.001538462704048) * MODEL12_texOff(vec2(1,1));
return vec4(res, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV2
//!DESC [AiUpscale_HQ_3x_Photo] sub-pixel convolution 2

vec4 hook()
{
vec3 res = vec3(-0.000060148642660,-0.000422687444370,0.000028189646400);
res += mat4x3(-0.001389826298691,0.001287933439016,0.001208977540955,-0.003252509515733,-0.002697466872633,-0.000471422041301,0.004003524780273,-0.005117179360241,-0.000957588898018,-0.003900259267539,-0.002512282924727,-0.000157329879585) * MODEL7_texOff(vec2(-1,-1));
res += mat4x3(-0.005660882219672,-0.010736051015556,-0.008343231864274,0.000040238355723,0.000214950268855,-0.001660300535150,-0.004868287593126,-0.006860963068902,0.011230864562094,-0.002018056809902,-0.002931848401204,-0.004602182656527) * MODEL7_texOff(vec2(-1,0));
res += mat4x3(0.002089838031679,0.002324716886505,0.002109965076670,-0.004081913270056,-0.004886711016297,-0.003723487490788,0.002275469247252,0.003199154278263,-0.002162384567782,-0.002596053527668,-0.004235319793224,-0.002486763754860) * MODEL7_texOff(vec2(-1,1));
res += mat4x3(-0.001138741383329,0.000746493635233,-0.000250192097155,0.002636148128659,0.002645393367857,0.003004753263667,-0.007872599177063,0.011636887677014,0.006373849697411,-0.001909400452860,-0.006415660027415,-0.001975707011297) * MODEL7_texOff(vec2(0,-1));
res += mat4x3(-0.019028533250093,-0.015964562073350,-0.008834261447191,0.030041415244341,0.021835889667273,0.008687324821949,0.025265796110034,0.019322972744703,-0.032981012016535,0.016231467947364,0.022039663046598,0.011658823117614) * MODEL7_texOff(vec2(0,0));
res += mat4x3(-0.001497867167927,-0.006589817348868,-0.014866757206619,-0.001310052466579,0.004325183574110,0.018771270290017,0.008062029257417,-0.001324263052084,-0.028113700449467,-0.006319736130536,-0.009074317291379,0.001655026222579) * MODEL7_texOff(vec2(0,1));
res += mat4x3(0.001679521403275,0.000356145465048,0.000019154125766,0.005154854152352,0.000735706940759,-0.000117767245683,0.000297557271551,-0.001677485997789,-0.002294140867889,-0.003620108589530,-0.003626403631642,-0.001003712648526) * MODEL7_texOff(vec2(1,-1));
res += mat4x3(0.004188283346593,0.003572746179998,0.002865507267416,0.007455450948328,0.007493448909372,0.008759863674641,-0.009701251052320,-0.002437212038785,0.008244293741882,-0.003639006754383,-0.000354124727892,-0.001388207776472) * MODEL7_texOff(vec2(1,0));
res += mat4x3(0.000939301855396,0.001861855154857,0.002867663279176,0.002684244420379,0.005166082177311,0.007148215081543,-0.006311212200671,-0.000607885711361,0.006076088640839,-0.001216045231558,-0.003838737728074,-0.004837835207582) * MODEL7_texOff(vec2(1,1));
res += mat4x3(-0.001795130781829,-0.000163348595379,0.001046765712090,-0.006189854815602,-0.002127096988261,0.001479828148149,0.001507952343673,-0.004646378569305,-0.000813856662717,0.004140693694353,0.004266177304089,0.000574821548071) * MODEL8_texOff(vec2(-1,-1));
res += mat4x3(-0.011919312179089,-0.011846930719912,-0.008161886595190,0.007779998704791,0.005326715297997,-0.003603638848290,-0.004532557446510,0.001086741453037,0.005309605505317,-0.004787117708474,-0.010394805110991,-0.001004245714284) * MODEL8_texOff(vec2(-1,0));
res += mat4x3(-0.000701463432051,-0.002863819710910,-0.008295177482069,-0.004030742216855,-0.004324540030211,0.003565232502297,0.000549770309590,0.001762720290571,-0.000632775598206,0.003400722751394,0.001655794796534,-0.000161871546879) * MODEL8_texOff(vec2(-1,1));
res += mat4x3(-0.015281645581126,-0.002171234926209,0.000823890906759,-0.005013812799007,0.009090638719499,0.006634804885834,-0.009990511462092,-0.014866999350488,0.013973222114146,-0.001505779335275,0.007830768823624,0.003264992963523) * MODEL8_texOff(vec2(0,-1));
res += mat4x3(-0.039587061852217,-0.046634208410978,-0.035809498280287,0.007995813153684,-0.001345799304545,-0.012443793006241,-0.011117168702185,-0.023684468120337,0.042797315865755,0.036649055778980,-0.019408633932471,-0.030779307708144) * MODEL8_texOff(vec2(0,0));
res += mat4x3(-0.000599020335358,-0.004340753424913,-0.018961071968079,-0.003691984340549,-0.001356131862849,0.009360790252686,0.001640838920139,0.000710145395715,0.003133308608085,-0.006601653061807,-0.007709394674748,0.027243655174971) * MODEL8_texOff(vec2(0,1));
res += mat4x3(-0.005945232231170,-0.001250738278031,0.000406052189646,-0.001666832482442,-0.001905758515932,-0.000336547294864,-0.003382653696463,-0.003943362738937,0.000203183764825,-0.001793597592041,-0.003593823174015,-0.004985852167010) * MODEL8_texOff(vec2(1,-1));
res += mat4x3(-0.006905274000019,-0.009069873951375,-0.007489779032767,0.000725507154129,0.000139892305015,-0.001496480777860,-0.005087623372674,0.000751085462980,0.009724962525070,0.007167037110776,0.012074391357601,-0.001023681485094) * MODEL8_texOff(vec2(1,0));
res += mat4x3(0.002746541053057,0.000643398438115,-0.003523614024743,0.000032717751310,0.000868390838150,0.003105262992904,0.001060010399669,0.002606820315123,-0.000662442529574,0.001005818485282,0.001919164671563,-0.003075701650232) * MODEL8_texOff(vec2(1,1));
res += mat4x3(0.005037975963205,-0.001470201765187,-0.000151730244397,-0.001558241085149,-0.000693647249136,0.000332840543706,-0.000623663712759,0.001757570658810,0.001862322795205,-0.002905745059252,0.002106473781168,0.003877056995407) * MODEL9_texOff(vec2(-1,-1));
res += mat4x3(0.001824199920520,0.000003124716613,0.001721918350086,0.002714304951951,0.001944795134477,-0.000581248488743,0.005581644829363,-0.003826526924968,-0.006309001240879,0.003740528598428,-0.008450156077743,-0.000232189995586) * MODEL9_texOff(vec2(-1,0));
res += mat4x3(-0.000209940073546,0.000612158095464,-0.000518112501595,-0.001622976385988,-0.001001245458610,-0.000202367358725,0.002449832856655,0.003535126801580,-0.002527958713472,-0.007961127907038,-0.005017387215048,0.015962911769748) * MODEL9_texOff(vec2(-1,1));
res += mat4x3(-0.020477032288909,0.010489678941667,0.002493682783097,-0.000191023500520,0.003809936344624,0.001169498660602,0.016567425802350,-0.007510371506214,-0.007701620459557,-0.019518619403243,0.005918186157942,0.008947240188718) * MODEL9_texOff(vec2(0,-1));
res += mat4x3(-0.027030168101192,0.040456075221300,-0.015755001455545,0.000787533004768,-0.012043667957187,-0.006399075966328,-0.019999373704195,-0.031118223443627,0.028046850115061,-0.018055636435747,0.030870221555233,-0.003871641820297) * MODEL9_texOff(vec2(0,0));
res += mat4x3(0.002691461704671,0.007219754159451,-0.008599839173257,-0.013880457729101,-0.011103214696050,0.035979136824608,-0.003230601083487,0.004653482697904,0.018611010164022,0.005536907818168,0.009713267907500,-0.016778059303761) * MODEL9_texOff(vec2(0,1));
res += mat4x3(-0.000733465363737,0.002153963781893,0.001482376246713,-0.000655066338368,0.002057399135083,0.001081699389033,-0.000840838707518,0.001673544407822,-0.000176596309757,0.003387034637854,-0.006635589059442,-0.000009133918866) * MODEL9_texOff(vec2(1,-1));
res += mat4x3(0.004195339512080,0.004405075684190,-0.008207775652409,0.007618888746947,-0.005333865061402,-0.006087440997362,0.000265181442956,0.003920832183212,-0.002177818212658,-0.004027616698295,-0.001534719485790,0.005957326851785) * MODEL9_texOff(vec2(1,0));
res += mat4x3(0.001866291626357,-0.001070146216080,-0.003069359576330,-0.007471418008208,-0.008074405603111,0.012823806144297,-0.002921836450696,-0.003330657491460,-0.000713961257134,-0.000080645979324,0.002314108191058,-0.000543910544366) * MODEL9_texOff(vec2(1,1));
res += mat4x3(0.005151167511940,0.000790848571341,-0.004005363676697,-0.001430476084352,0.003054243745282,0.003539299359545,-0.001025808509439,-0.000618996971752,-0.000613885989878,0.004965108353645,0.002867187373340,0.001309853745624) * MODEL10_texOff(vec2(-1,-1));
res += mat4x3(0.000066379048803,-0.000794392079115,0.002995980670676,0.003003489458933,0.000007015428764,-0.002644013846293,0.000014323889445,0.003089271020144,0.001199371879920,-0.012555195018649,0.000711333646905,0.005756553728133) * MODEL10_texOff(vec2(-1,0));
res += mat4x3(0.000245035625994,0.000056095723266,-0.000468028010800,-0.001886600861326,-0.000226939475397,0.001841869205236,0.005637428257614,-0.000102493293525,-0.006451930850744,0.003325448371470,-0.004199556540698,-0.013551484793425) * MODEL10_texOff(vec2(-1,1));
res += mat4x3(0.035628896206617,-0.003719604108483,-0.025526475161314,0.006935840006918,-0.001344860880636,0.001732986536808,-0.001233336166479,-0.002812734106556,-0.002357305958867,0.004612550139427,-0.009558037854731,-0.007142731454223) * MODEL10_texOff(vec2(0,-1));
res += mat4x3(-0.008681138046086,-0.010604567825794,-0.000203324103495,0.050915151834488,-0.023034557700157,-0.014346469193697,-0.023718569427729,0.029465816915035,0.000563970999792,-0.010929015465081,0.025604177266359,0.033896416425705) * MODEL10_texOff(vec2(0,0));
res += mat4x3(0.002806080970913,0.004067350178957,-0.000663660583086,0.012140379287302,-0.009748416952789,-0.022844446823001,0.003594399662688,0.021148212254047,-0.023103818297386,0.002401252510026,-0.007465337403119,-0.024783350527287) * MODEL10_texOff(vec2(0,1));
res += mat4x3(0.001396401552483,-0.001016632886603,-0.000933223462198,-0.002137983683497,0.002797295572236,0.002577631501481,0.000396322138840,-0.000321132480167,-0.001146024209447,-0.010215725749731,-0.009480245411396,-0.005477681290358) * MODEL10_texOff(vec2(1,-1));
res += mat4x3(-0.003132462967187,0.000624403823167,0.003114565275609,0.003295760601759,0.002352042589337,-0.004897031933069,-0.003934848587960,0.001821023644879,0.006180311087519,0.009655234403908,0.013915864750743,0.001198943005875) * MODEL10_texOff(vec2(1,0));
res += mat4x3(-0.000022914297006,0.000174809887540,-0.000361145357601,-0.000444231787696,-0.003046972909942,-0.000136446586112,0.001228552195244,0.002224287483841,-0.001405906281434,-0.001779950107448,-0.001203828491271,0.002297988627106) * MODEL10_texOff(vec2(1,1));
res += mat4x3(-0.021993236616254,-0.009069903753698,0.000922047533095,-0.002554037608206,-0.000549719610717,-0.000573963276111,-0.002563560614362,-0.003003138117492,-0.005077396985143,-0.011276822537184,0.002087866188958,0.005320821423084) * MODEL11_texOff(vec2(-1,-1));
res += mat4x3(0.007938032038510,0.009308520704508,-0.014268107712269,-0.004298274870962,-0.006531241815537,-0.004951176233590,-0.007696147542447,0.010684349574149,0.004955052398145,0.003561217570677,0.014045292511582,0.001108559430577) * MODEL11_texOff(vec2(-1,0));
res += mat4x3(0.000471939798445,0.001374967745505,0.002313728677109,0.001860371674411,0.001232243725099,-0.000073743794928,0.000881433021277,-0.001776333898306,-0.001879267394543,-0.004463014192879,-0.003291132161394,-0.001793574076146) * MODEL11_texOff(vec2(-1,1));
res += mat4x3(-0.024291206151247,-0.016406780108809,-0.006631006952375,0.008172905072570,0.004605445545167,0.000986173166893,0.006127472966909,0.012065672315657,0.001222960650921,0.023184120655060,-0.015165956690907,-0.008156961761415) * MODEL11_texOff(vec2(0,-1));
res += mat4x3(0.000341263803421,0.031428273767233,0.012448243796825,-0.014048809185624,-0.004449798259884,0.003456436330453,0.043134354054928,0.000293923279969,-0.044434465467930,-0.028363684192300,-0.016276225447655,0.040853187441826) * MODEL11_texOff(vec2(0,0));
res += mat4x3(0.003409581724554,0.001933603431098,-0.010644124820828,0.002033351687714,-0.003272461472079,-0.009223585948348,-0.002500600880012,-0.010791029781103,0.002486127428710,-0.000818654138129,0.003289877204224,-0.000266906630713) * MODEL11_texOff(vec2(0,1));
res += mat4x3(0.002889845753089,0.000750073697418,0.001846164464951,0.006870020646602,0.004271096549928,-0.001747855567373,0.001409492339008,0.000957621785346,0.002203633775935,-0.000101719611848,0.001724256202579,0.002868186216801) * MODEL11_texOff(vec2(1,-1));
res += mat4x3(-0.000616949459072,0.007008851505816,0.005352066829801,-0.000347640889231,0.000459749251604,0.007541851140559,-0.003246062202379,-0.006147720851004,0.005218500737101,-0.005847631022334,-0.006283927243203,-0.000524402887095) * MODEL11_texOff(vec2(1,0));
res += mat4x3(-0.003816004842520,-0.004127075895667,-0.004803621210158,-0.001085906056687,0.000070724476245,-0.001380990725011,0.001808672561310,0.000698315445334,0.000846735318191,0.004317275248468,0.002690338762477,-0.003464678302407) * MODEL11_texOff(vec2(1,1));
res += mat4x3(-0.007700843736529,-0.004209618084133,-0.001245690858923,-0.000939501042012,-0.000255074934103,-0.000294835714158,-0.000512323807925,0.000341712584486,-0.000433750741649,0.000918814272154,0.001260768622160,0.000836337159853) * MODEL12_texOff(vec2(-1,-1));
res += mat4x3(-0.006510643288493,-0.006222278345376,-0.007395291700959,-0.002973066875711,-0.002592633478343,-0.001814563991502,-0.000925542088225,-0.002547068055719,-0.002578350482509,0.007645576726645,0.005396568682045,0.002696221228689) * MODEL12_texOff(vec2(-1,0));
res += mat4x3(-0.002125603845343,-0.005809290334582,-0.007549463771284,0.000460595299955,-0.000265155715169,-0.001651003258303,0.001339398324490,0.000609480601270,0.001217132783495,-0.000490613514557,0.001186955487356,0.004438586067408) * MODEL12_texOff(vec2(-1,1));
res += mat4x3(0.006026089191437,-0.001718843355775,-0.001661935239099,0.010656823404133,0.004909281153232,-0.000121291195683,0.015358306467533,-0.004264771938324,-0.006757249590009,-0.008447770960629,-0.002323805121705,0.002570840530097) * MODEL12_texOff(vec2(0,-1));
res += mat4x3(0.025923451408744,0.037574533373117,0.026390982791781,0.014925119467080,0.016145478934050,0.016657020896673,-0.023988969624043,-0.002227039309219,0.020455569028854,0.021064657717943,0.008878884837031,-0.007551533170044) * MODEL12_texOff(vec2(0,0));
res += mat4x3(-0.004262708593160,-0.007817902602255,0.003389765042812,-0.000181583352969,0.002839126624167,0.006952905096114,0.008835698477924,0.005975823383778,-0.016352927312255,-0.001961464527994,0.003404272720218,0.015360848046839) * MODEL12_texOff(vec2(0,1));
res += mat4x3(-0.007598960772157,-0.004317769315094,-0.001433885772713,0.013641051016748,0.000167259146110,-0.003777140518650,0.002578796818852,0.000389737077057,-0.000997749390081,-0.005638441070914,-0.004037214908749,0.000444651581347) * MODEL12_texOff(vec2(1,-1));
res += mat4x3(-0.013030409812927,-0.010234038345516,-0.008798243477941,0.003596524009481,0.018334854394197,0.024218810722232,0.000603743304964,-0.001314300345257,0.000356191769242,0.005397938191891,0.002608416834846,-0.004046050831676) * MODEL12_texOff(vec2(1,0));
res += mat4x3(-0.001284308847971,-0.006356996018440,-0.012029817327857,0.001458954531699,0.001273158472031,-0.001699845772237,0.000794891850092,0.000324416119838,0.001173932920210,0.000640559708700,0.001484299427830,0.004939183127135) * MODEL12_texOff(vec2(1,1));
return vec4(res, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV3
//!DESC [AiUpscale_HQ_3x_Photo] sub-pixel convolution 3

vec4 hook()
{
vec3 res = vec3(-0.000293788645649,-0.000554193393327,0.000217720240471);
res += mat4x3(-0.003913494758308,-0.001642728457227,-0.001243259874173,-0.000172339801793,-0.001535185030662,-0.001283970545046,0.007063328288496,-0.004336681682616,-0.000390909903217,-0.003983359783888,-0.001379280700348,-0.000352324917912) * MODEL7_texOff(vec2(-1,-1));
res += mat4x3(-0.024611702188849,-0.019323270767927,-0.011345250532031,0.002961385529488,0.001845584716648,0.001587755046785,0.000265789363766,-0.003977253101766,0.005095968488604,-0.007529165595770,-0.006971671245992,-0.007053951732814) * MODEL7_texOff(vec2(-1,0));
res += mat4x3(-0.001987842377275,-0.010170376859605,-0.018383726477623,0.001197726349346,0.001736170379445,0.003107453929260,0.001024392549880,0.003780615516007,0.000383838603739,-0.002189655555412,-0.002515085740015,-0.004034362733364) * MODEL7_texOff(vec2(-1,1));
res += mat4x3(0.004462745506316,0.002720574149862,0.000433226698078,0.008611800149083,0.002239329973236,0.000702109595295,-0.021431392058730,0.001498048193753,0.003975875675678,-0.001475518685766,-0.007707263808697,-0.004543596412987) * MODEL7_texOff(vec2(0,-1));
res += mat4x3(0.015326865948737,0.014382937923074,0.010831114836037,0.014496984891593,0.019371068105102,0.014974290505052,-0.023856820538640,0.032537423074245,0.002589304698631,0.027092123404145,0.035416819155216,0.019669065251946) * MODEL7_texOff(vec2(0,0));
res += mat4x3(0.004836613312364,0.006683289073408,0.009619710035622,0.004922680556774,0.006052679382265,0.009962335228920,0.000484422489535,0.010647664777935,-0.018234496936202,-0.006859129294753,-0.005042612552643,0.009284925647080) * MODEL7_texOff(vec2(0,1));
res += mat4x3(-0.001222400111146,-0.000868192641065,-0.000176436267793,0.000393519731006,-0.000151384563651,-0.000493715109769,0.006395792588592,-0.000765233067796,0.000385628460208,-0.008833570405841,-0.006740092299879,-0.002632234245539) * MODEL7_texOff(vec2(1,-1));
res += mat4x3(-0.001489850925282,-0.002220151713118,-0.001651399768889,-0.009327761828899,-0.004213511478156,-0.001118570682593,0.008150542154908,-0.029857840389013,0.007367075420916,-0.012831299565732,-0.007483924739063,-0.007970048114657) * MODEL7_texOff(vec2(1,0));
res += mat4x3(0.000115507304145,0.000208023964660,-0.001215677126311,-0.005269163288176,-0.009010417386889,-0.011355064809322,-0.004673565737903,-0.010328449308872,0.028217999264598,-0.004151355940849,-0.009153170511127,-0.012906905263662) * MODEL7_texOff(vec2(1,1));
res += mat4x3(0.001208094763570,0.000192653329577,-0.000193202926312,0.001802430953830,-0.000554497702979,0.000776888686232,0.001533627393655,-0.000378762953915,-0.000987193896435,-0.000749349186663,0.002021098975092,-0.001099424203858) * MODEL8_texOff(vec2(-1,-1));
res += mat4x3(-0.002632956951857,-0.000664342893288,-0.000417592760641,0.000801053829491,0.002398041542619,0.002456393092871,-0.003859621006995,0.000314179604175,0.002000775886700,-0.003164984751493,-0.007837094366550,-0.004191479645669) * MODEL8_texOff(vec2(-1,0));
res += mat4x3(0.000013856321857,-0.000668170745485,-0.001530624344014,-0.002537046791986,-0.003336772555485,-0.001420210348442,0.000331291666953,0.001300569972955,-0.001066993223503,0.003874990856275,0.002893935889006,-0.001775996293873) * MODEL8_texOff(vec2(-1,1));
res += mat4x3(-0.007101202849299,-0.003804974025115,-0.000452288106317,-0.018389044329524,0.006253744475543,0.008820462040603,-0.006987875793129,-0.015978964045644,0.012081854045391,-0.018430549651384,-0.005934958346188,-0.000980852288194) * MODEL8_texOff(vec2(0,-1));
res += mat4x3(0.031567029654980,0.025288334116340,0.006600482389331,0.019094282761216,-0.002424040110782,-0.026827551424503,-0.008967636153102,-0.014974699355662,0.031867999583483,0.027892259880900,0.037497770041227,-0.007491374388337) * MODEL8_texOff(vec2(0,0));
res += mat4x3(0.002151390770450,0.007093493826687,0.021262619644403,-0.005857787560672,-0.001159436535090,0.017505472525954,0.000521213107277,0.000896497804206,0.002343080006540,-0.000630828959402,-0.009333379566669,-0.012596531771123) * MODEL8_texOff(vec2(0,1));
res += mat4x3(-0.000004865308256,0.000791136000771,0.001296283910051,0.004413077607751,0.001029254519381,0.000669809465762,-0.007939573377371,-0.006983525119722,0.004737739916891,0.004246415570378,0.000984859419987,-0.002639315789565) * MODEL8_texOff(vec2(1,-1));
res += mat4x3(0.015519738197327,0.008154793642461,0.003660139162093,-0.003572568064556,0.000488600810058,0.005379294510931,-0.009987086057663,-0.007753707468510,0.021793892607093,-0.032311405986547,0.016137225553393,0.022596288472414) * MODEL8_texOff(vec2(1,0));
res += mat4x3(-0.001777897356078,0.000739695969969,0.006469081155956,0.000097823030956,0.000171788895386,-0.000149644052726,0.003321195486933,0.002643245272338,0.001144753303379,0.001280820812099,0.002228378085420,-0.021513577550650) * MODEL8_texOff(vec2(1,1));
res += mat4x3(0.005310920998454,-0.000875465862919,-0.001024381024763,-0.000505570438690,-0.000350752990926,-0.000216338026803,-0.001093207392842,0.002725845901296,0.002154412213713,-0.001244896324351,0.003135123522952,0.000378023716621) * MODEL9_texOff(vec2(-1,-1));
res += mat4x3(0.002418590476736,0.000828994903713,-0.002890668576583,0.001226222957484,0.000613248848822,0.000359136902262,0.000614382384811,-0.005975706037134,-0.000949404726271,-0.001870828215033,0.001152132404968,-0.001811562920921) * MODEL9_texOff(vec2(-1,0));
res += mat4x3(0.000184085569344,-0.000038883750676,-0.001026910380460,-0.000236141248024,0.000142421311466,0.001712644821964,0.005578233860433,0.004121292848140,0.000336534372764,-0.002862385241315,-0.002381770405918,0.005536100827157) * MODEL9_texOff(vec2(-1,1));
res += mat4x3(-0.016490999609232,0.004482211079448,0.002324854023755,0.001641929964535,0.002469044178724,0.001736152102239,-0.004126318264753,-0.007425011601299,-0.002835260936990,-0.011588816531003,0.008413641713560,0.005200920626521) * MODEL9_texOff(vec2(0,-1));
res += mat4x3(-0.026706982403994,0.016436291858554,0.004306792747229,-0.001897121779621,-0.004477865062654,-0.005448576528579,-0.042078841477633,0.019952023401856,0.037677116692066,0.033782102167606,0.022297482937574,-0.041705772280693) * MODEL9_texOff(vec2(0,0));
res += mat4x3(0.001578144030645,0.004445843398571,0.000799562491011,-0.010586882010102,-0.003475801320747,0.016325738281012,0.000202302762773,0.006781343370676,-0.013883468694985,0.007660387083888,-0.004730797372758,-0.017104344442487) * MODEL9_texOff(vec2(0,1));
res += mat4x3(-0.003639517351985,0.009402113966644,0.001905786688440,-0.001588439568877,0.003467483678833,0.001722509390675,-0.006924697197974,0.001430977252312,0.003479001112282,0.002011099364609,-0.005014389753342,0.001123099471442) * MODEL9_texOff(vec2(1,-1));
res += mat4x3(0.004177481401712,0.029343063011765,-0.023349510505795,0.014598963782191,-0.012693172320724,-0.007910651154816,0.015784911811352,0.004386976826936,-0.020244399085641,-0.009099358692765,-0.006571099627763,0.013760352507234) * MODEL9_texOff(vec2(1,0));
res += mat4x3(0.002311349613592,0.004137154668570,-0.016189584508538,-0.010814132168889,-0.016855079680681,0.031059436500072,-0.003317688824609,-0.003705841023475,-0.000790283491369,0.005402503535151,0.002609662013128,-0.000519793364219) * MODEL9_texOff(vec2(1,1));
res += mat4x3(0.002685699379072,-0.000156990761752,-0.000810826662928,-0.001739919767715,0.001861625351012,0.001986232819036,-0.001702726818621,-0.000985368969850,-0.000234219041886,0.005197704769671,0.004559263586998,0.001807831111364) * MODEL10_texOff(vec2(-1,-1));
res += mat4x3(0.000841487839352,0.000112387846457,0.002322842366993,-0.000345915235812,0.000996329705231,-0.002244341885671,-0.004669663961977,0.000962701044045,0.003296936862171,0.000790725578554,0.003705756040290,0.003420439781621) * MODEL10_texOff(vec2(-1,0));
res += mat4x3(-0.000207727091038,-0.000438881368609,0.000133190478664,-0.002174281049520,0.001899230992422,0.000600613595452,0.006004909984767,-0.000846206152346,-0.002848486881703,-0.004172431305051,-0.007470589131117,-0.004785561468452) * MODEL10_texOff(vec2(-1,1));
res += mat4x3(0.026815585792065,0.005630213301629,-0.021676467731595,0.005935422610492,0.000716350041330,0.001580148935318,-0.000190986756934,-0.003084148513153,-0.001858777133748,-0.019534314051270,-0.007182447705418,-0.002460266929120) * MODEL10_texOff(vec2(0,-1));
res += mat4x3(-0.006257733795792,-0.009526133537292,-0.004645996727049,0.043710444122553,-0.022377695888281,-0.011389562860131,-0.009541276842356,0.027327697724104,-0.003111843252555,0.040538419038057,0.008257130160928,-0.019272977486253) * MODEL10_texOff(vec2(0,0));
res += mat4x3(0.001973672304302,0.002632763236761,-0.001708463882096,0.008402654901147,-0.011692387983203,-0.011660002171993,0.002396756550297,0.016685068607330,-0.028817016631365,-0.003980634268373,0.001030870131217,0.024777529761195) * MODEL10_texOff(vec2(0,1));
res += mat4x3(0.013690268620849,-0.011011940427125,-0.009083868004382,-0.000792771810666,0.002235164865851,0.003878825111315,-0.001867836108431,-0.000717280432582,-0.001729733310640,-0.008370427414775,0.010524725541472,0.007959416136146) * MODEL10_texOff(vec2(1,-1));
res += mat4x3(-0.006660276092589,-0.003757273778319,0.009790122509003,0.012419991195202,0.002850618911907,-0.011218298226595,-0.013695256784558,0.003184674307704,0.008222671225667,0.005774578079581,-0.019373435527086,-0.032672606408596) * MODEL10_texOff(vec2(1,0));
res += mat4x3(0.001544617931359,0.001882718876004,-0.001290288753808,0.004902034997940,-0.002043868415058,-0.010537672787905,0.002273151418194,0.008248877711594,0.004495844244957,-0.002972445450723,0.001798940589651,0.010112435556948) * MODEL10_texOff(vec2(1,1));
res += mat4x3(-0.002556269522756,-0.009418829344213,-0.008048236370087,-0.002412435831502,-0.001588889863342,0.000086950232799,-0.000387812353438,-0.004121551755816,-0.002999141346663,-0.004309264943004,-0.003394145052880,0.005026292987168) * MODEL11_texOff(vec2(-1,-1));
res += mat4x3(0.003184121102095,0.009060390293598,0.008492126129568,-0.003690798068419,-0.004040230065584,-0.004033584613353,-0.001191895222291,0.003078106557950,-0.001154878176749,0.000357313023414,0.004414716735482,0.006834875326604) * MODEL11_texOff(vec2(-1,0));
res += mat4x3(-0.000804884184618,0.001202519866638,0.004297185689211,-0.001111232559197,-0.000651731272228,-0.001608275459148,-0.003690741723403,0.000094350136351,0.000408737367252,-0.002184132346883,-0.004264651797712,-0.001716760569252) * MODEL11_texOff(vec2(-1,1));
res += mat4x3(0.044879168272018,0.003641149494797,-0.008448416367173,0.015712354332209,0.003087255405262,0.000708299456164,0.024724755436182,-0.000191898085177,0.000065212836489,0.028390565887094,0.008549575693905,-0.005248264409602) * MODEL11_texOff(vec2(0,-1));
res += mat4x3(-0.032796029001474,-0.011236089281738,0.058693304657936,0.022532619535923,0.032608546316624,0.029919246211648,0.014232556335628,-0.043031703680754,0.001944805146195,0.012211625464261,-0.046467896550894,-0.027370087802410) * MODEL11_texOff(vec2(0,0));
res += mat4x3(0.001393971382640,0.004879849497229,-0.005880334880203,-0.004605569411069,-0.002403980819508,0.005247123539448,-0.005962651688606,-0.005793364718556,0.025078108534217,-0.003117396263406,-0.000604205881245,0.017648169770837) * MODEL11_texOff(vec2(0,1));
res += mat4x3(0.006334915757179,-0.004468850325793,-0.000858096755110,0.004060673527420,-0.003592548193410,-0.003035954898223,-0.008688465692103,-0.000144283767440,0.000160294745001,-0.007027032785118,-0.001680996385403,-0.000830807723105) * MODEL11_texOff(vec2(1,-1));
res += mat4x3(-0.013822292909026,-0.019145125523210,-0.002930349903181,0.019024292007089,0.025999797508121,0.018992634490132,-0.012544187717140,0.012613365426660,0.014375784434378,0.007511372212321,0.007325929123908,-0.005942115094513) * MODEL11_texOff(vec2(1,0));
res += mat4x3(0.002367016626522,0.003249966073781,-0.002566259121522,0.001708258059807,0.003234048141167,0.008936990983784,-0.000814562488813,-0.000734333239961,-0.002857907442376,0.002520955633372,0.004572093486786,0.001834829570726) * MODEL11_texOff(vec2(1,1));
res += mat4x3(-0.000986438011751,0.000151186555740,0.000584656256251,-0.000176086265128,0.000209682257264,-0.000024805454814,-0.000358606048394,0.000124313839478,-0.000488858728204,0.002576263155788,0.001855816575699,0.000459398172097) * MODEL12_texOff(vec2(-1,-1));
res += mat4x3(-0.001723993220367,-0.001142376800999,-0.000718922819942,-0.002076572971418,-0.002500982955098,-0.000723017263226,-0.000109284817881,-0.001509217196144,-0.002423537196591,0.002608977025375,0.001433730241843,0.002436344046146) * MODEL12_texOff(vec2(-1,0));
res += mat4x3(-0.000803855655249,-0.001741075655445,-0.002219591755420,0.000455974426586,-0.000350824557245,-0.001030413317494,0.000453137268778,0.000905463239178,0.000901685329154,0.001275573507883,0.002924248110503,0.003467284841463) * MODEL12_texOff(vec2(-1,1));
res += mat4x3(-0.003987323958427,-0.003100795904174,0.000342215178534,0.003178905230016,0.004850781988353,0.003868269268423,0.010466083884239,-0.003707747906446,-0.004232876002789,-0.004663736559451,0.000007640950571,-0.000090962908871) * MODEL12_texOff(vec2(0,-1));
res += mat4x3(0.010777930729091,0.013376445509493,0.004689178429544,0.003035609377548,0.001647543977015,0.001230068854056,-0.013932406902313,0.001244607381523,0.016770768910646,-0.026091396808624,-0.030477050691843,-0.021017502993345) * MODEL12_texOff(vec2(0,0));
res += mat4x3(-0.002987078391016,-0.006645593326539,0.000246248207986,0.000615709577687,0.000803088129032,0.000735699839424,0.005923415534198,0.004128529224545,-0.009336751885712,0.003470904193819,0.003005922073498,-0.007137023378164) * MODEL12_texOff(vec2(0,1));
res += mat4x3(-0.000206840166356,-0.003980110865086,-0.001817881828174,-0.020211454480886,-0.005042763426900,0.000092576468887,0.008929220959544,-0.000264946982497,-0.003917430061847,-0.006422325037420,-0.000339069840265,-0.000942434533499) * MODEL12_texOff(vec2(1,-1));
res += mat4x3(0.000755862682126,0.010440857149661,0.009345700964332,-0.030100150033832,-0.044279854744673,-0.042563732713461,-0.009096165187657,-0.005009487736970,0.004643543157727,-0.034924089908600,-0.037784773856401,-0.022612472996116) * MODEL12_texOff(vec2(1,0));
res += mat4x3(-0.002617916557938,-0.010162955150008,-0.010756953619421,-0.004391323309392,-0.004781050141901,-0.010696660727262,0.004257231950760,0.002748154336587,-0.005503073334694,0.000123809732031,-0.002535022795200,-0.015363104641438) * MODEL12_texOff(vec2(1,1));
return vec4(res, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!WIDTH LUMA.w 3 *
//!HEIGHT LUMA.h 3 *
//!BIND SUBCONV1
//!BIND SUBCONV2
//!BIND SUBCONV3
//!BIND LANCZOS3
//!DESC [AiUpscale_HQ_3x_Photo] depth to space

vec4 hook()
{
vec2 fcoord = fract(SUBCONV1_pos * SUBCONV1_size);
vec2 base = SUBCONV1_pos + (vec2(0.5) - fcoord) * SUBCONV1_pt;
ivec2 index = ivec2(fcoord * vec2(3));
mat3 res = mat3(SUBCONV1_tex(base).rgb,SUBCONV2_tex(base).rgb,SUBCONV3_tex(base).rgb);
return vec4(res[index.x][index.y] + float(LANCZOS3_texOff(0)), 0, 0, 1);
}
